Using a registered payment method
Call the Charge/CreatePayment Web Service:
POSThttps://api.systempay.fr/api-payment/V4/Charge/CreatePayment
Use the same fields as for a single payment and add the paymentMethodToken field:
Field name | Description |
---|---|
paymentMethodToken | Token of the payment method as returned after the meal voucher registration. |
Note on the buyer details associated with the payment method token
During a payment by token, the attributes customer.reference, customer.email and customer.billingDetails transmitted in the request are ignored and the values associated with the token are used.
Example of a request:
POST https://api.systempay.fr/api-payment/V4/Charge/CreatePayment
{ "amount": 1715, "currency": "EUR", "formAction": "PAYMENT", "orderId": "CMD46478", "paymentMethodToken": "951dabcc0ebf4070a5d6709ad96e82ad", "customer": { "shippingDetails": { "category": "PRIVATE", "firstName": “Jeanne", ... }
Once the form is displayed, the payment method details will be automatically pre-filled.
All the buyer needs to do is validate the payment (depending on the shop configuration, the CVV may be requested for validating the payment).