Supporting payment cards
Last updated
Was this helpful?
Last updated
Was this helpful?
When creating a reservation, it is possible to attach a payment card to the reservation. As part of creating your own custom booking engine, you may want to have a form within your application where customers can enter their payment card data and send this data to the Booking Engine API for further use. Payment card data can then be used by Mews for charging the customer. To do that, some Booking Engine API operations support or require in the request.
CreditCardData
valuesConfirm that the hotel or property supports PCI Proxy by checking the field in the configuration data returned from . Also refer to the documentation to see what other API data you could potentially use for your implementation.
Follow the guide to handle the sensitive card data and obtain PaymentGatewayData
. Use as the merchantId
while implementing PCI Proxy fields.
The PCI Proxy service will return a transactionId
in the response which you use as PaymentGatewayData
inside the object.
Once you have the PaymentGatewayData
, you can create a payment card by providing in the request body.
Production environment: Note PCI Proxy documentation only highlights the sandbox endpoints, used for the staging environment. For the production environment, omit the
sandbox.
part from the address. For example,https://pay.sandbox.datatrans.com/upp/payment/js/secure-fields-2.0.0.min.js
becomeshttps://pay.datatrans.com/upp/payment/js/secure-fields-2.0.0.min.js
.