Supporting payment cards

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 Credit card data in the request.

Where to get CreditCardData values

  • Confirm that the hotel or property supports PCI Proxy by checking the field Payment card storage type in the configuration data returned from Get hotels. Also refer to the Payment gateway documentation to see what other API data you could potentially use for your implementation.

  • Follow the PCI Proxy Secure Fields guide to handle the sensitive card data and obtain PaymentGatewayData. Use PublicKey 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 Credit card data object.

  • Once you have the PaymentGatewayData, you can create a payment card by providing Credit card data 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 becomes https://pay.datatrans.com/upp/payment/js/secure-fields-2.0.0.min.js.

Last updated