Select payment methods
By default, the buyer has the choice among all eligible payment methods (depending on the currency, minimum or maximum amount, technical constraints) associated with the store.
To select the payment methods offered to the buyer, use the paymentMethods
field when creating the formToken (see: Step 3: Create a formToken ).
See the kr-payment-method attribute table for payment method values.
Query examples
Offer only the following payment methods:
payment by cards and PayPal
/doc/en-EN/rest/V4.0/api/kb/authentication.html
https://api.scelliuspaiement.labanquepostale.fr/api-payment/V4/Charge/CreatePayment
{ "amount": 10000, "currency": "EUR", "paymentMethods": [ "PAYPAL", "PAYPAL_BNPL", "CARDS" ], "customer": { "email": "sample@example.com" }, "orderId": "myOrderId-1234" }
payment by cards and Alma
/doc/en-EN/rest/V4.0/api/kb/authentication.html
https://api.scelliuspaiement.labanquepostale.fr/api-payment/V4/Charge/CreatePayment
{ "amount": 10000, "currency": "EUR", "paymentMethods": [ "ALMA_2X", "ALMA_3X", "ALMA_4X", "ALMA_10X", "ALMA_12X", "CARDS" ], "customer": { "email": "sample@example.com" }, "orderId": "myOrderId-1234" }
payment by cards and Apple Pay
/doc/en-EN/rest/V4.0/api/kb/authentication.html
https://api.scelliuspaiement.labanquepostale.fr/api-payment/V4/Charge/CreatePayment
{ "amount": 10000, "currency": "EUR", "paymentMethods": [ "APPLE_PAY", "CARDS" ], "customer": { "email": "sample@example.com" }, "orderId": "myOrderId-1234" }
To view the fields and their description, go to the playground: Charge/CreatePayment (menu on the left).
Once the formToken is generated, display the payment form: