How to present the gateway in your cart
Your e-shop can offer customers a variety of payment methods, all with the goal of ensuring successful payment completion. If a payment attempt fails or preferences change, customers can return to the signpost and select another payment method.
1) Complete withdrawal at the payment gateway
The standard solution is a complete withdrawal at the payment gateway. This means that the customer selects the payment method and, if applicable, the banking institution exclusively at the payment gateway. By avoiding unnecessary steps in the shopping cart, the success rate of payment completion is increased.
Characteristics of this solution:
- This is the simplest option in terms of implementation.
- You don't have to worry about new methods on the payment gateway.
- The payment gateway behaves intelligently and displays the methods, for example, depending on the payment amount.
Technical solution:
Your e-shop will create a payment using the "create" method with the parameter method=ALL (see API documentation). After the payment is created, the API returns the URL where you redirect the payer. The payer will be shown a payment gateway with all available methods.
2) Choice of payment method in the e-shop, choice of bank on the payment gateway
In the e-shop, customers can choose their preferred payment method from the options provided by the shop. The responsibility for this setting lies entirely with the e-shop. Once the payment method has been selected, the customer will be redirected to the payment gateway. Here, they can either make the payment or choose their bank provider for a bank transfer.
Characteristics of this solution:
- We extend the methods on the payment gateway and in most cases they fall into the following groups of methods.
- So there is no need to update the structure of the signpost so often.
Technical solution:
Prepare an HTML form in the e-shop cart that offers several items:
- CARD_ALL - Card payment
- BANK_ALL - Payment by bank transfer
- LATER_ALL - Deferred payment
- PART_ALL - Payment in parts
- Other options if applicable
Once the payer selects an option, use it as the method=CARD_ALL parameter when setting up the payment (see API documentation) . Redirect the payer to the URL returned by the API when the payment is created. The payer will then select the specific method from the selected category on the payment gateway.
3) Full selection of methods in the e-shop
These options are displayed in the shopping cart, and after payment is created, only the selected method is shown to the customer on the payment gateway. Technical preparation of the e-shop signpost on the merchant's side is required for this option.
Characteristics of this solution:
- This solution provides the greatest possibility of customization by the e-shop.
- Ideally, you should download the list of methods before each cart view. At the same time, you need to maintain the methods in the cart regularly, as we are continuously expanding (or modifying) the methods.
Technical solution:
In the e-shop, before displaying the signpost in the cart, download the list of available methods from our API. In the list of methods you have the names and corresponding images. Create an HTML form that gives each method to the payer to select. Once a specific method is selected by the payer, set up a payment (example of the specific method selected). Then redirect the payer to the URL returned by the API after the payment is created. The payer will now be taken to the payment gateway with the specific method pre-selected.