Zero-click payment
This mode allows you to create a transaction without displaying the payment form and without authentication (server-to-server call).
Prerequisites: create a token
- For more information: Token creation.
Using a token
Request
For payment by card
Champs attendus :
- amount : 9.90 €.
- token: field
paymentMethodToken
= "b6e51ba31f934ac5b25ccad2a52ccd56
". - Chaining reference: field
transactionOptions.cardOptions.initialIssuerTransactionIdentifier
= "736070(...)0709304
" - formAction:
SILENT
.
Lors de la création de l'alias, récupérez la référence de chaînage dans le champ initialIssuerTransactionIdentifier
de l'objet transactions[0].transactionDetails.cardDetails. Vous devez l'utiliser pour chaque demande de paiement. Cette référence est importante sinon les émetteurs peuvent refuser la transaction en cas d'absence de chaînage ("Soft Decline").
/doc/en-EN/rest/V4.0/api/kb/authentication.html
https://api.systempay.fr/api-payment/V4/Charge/CreatePayment
{ "amount": 990, "currency": "EUR", "paymentMethodToken": "b6e51ba31f934ac5b25ccad2a52ccd56", "transactionOptions": { "cardOptions": { "initialIssuerTransactionIdentifier": "736070(...)0709304" } }, "formAction": "SILENT" }
Response
The call is made from one server to another with creation of a transaction (without end of payment notification: IPN).
Example transaction
{ "shopId": "73239078", "orderCycle": "CLOSED", "orderStatus": "PAID", "serverDate": "2018-09-27T14:02:17+00:00", "orderDetails": (...) "customer": (...) }, "transactions": [{ "shopId": "73239078", "uuid": "5b158f084502428499b2d34ad074df05", "amount": 990, (...) "_type": "V4/PaymentTransaction" }], "_type": "V4/Payment" }
Pour connaître l'intégralité et la description des champs, consultez le playground : answer/Transaction.