How-tos
Search…
⌃K
Links

Payments

How to pay for an order using one of the supported payment gateways
Typically, every payment gateway integration process consists of two main stages: a client-side and a server-side one.
For security and compliance reasons, Commerce Layer never touches credit card data.
Specifically, the payment details are collected, tokenized — or encrypted — and sent to the payment service on the client-side, leveraging the SDKs and libraries provided by the service itself (i.e. Commerce Layer always receives a token — never stores, for instance, any credit card information). On the other hand, our platform takes care of all the server-side parts of the process, offering an out-of-the-box integration with the most common payment gateways.
Commerce Layer payments are idempotent. The order and payment statuses are granted to be consistent upon multiple updates, throughout the whole payment process (e.g. it's possible to place or cancel an order more than one time, without worrying about duplicated transactions and other side effects).
This guide will walk you through the different steps you need to follow in order to let your customers process their payments using the payment method they selected and its corresponding payment gateway or service.

Supported payment gateways

These are the payment gateways and services Commerce Layer is currently integrated with. Most of them are compliant with the PSD2 European regulation so that you can implement a payment flow that supports SCA and 3DS2. As anticipated, each of them has its own integration pattern. For details and examples of how to implement the payment flow in any of these cases, see the related sections.
If you're planning to use a different service to process your payments, feel free to contact us. We are constantly working on expanding this list and definitely open to adding any additional payment gateway, based on the requests and needs of our clients.