API sendPayment
The Sendpayment API is used to initiate a journey from your TPE or seller device and provide the customer with the means to fulfil their journey. The SendPayment method is similar to the Initialize method. In the Swagger, you will find a section named 'sendPaymentMerchantData’.
Mandatory fields might change depending of the product you sell, your Cofidis Point of contact can give you the list.
“sendingType” field can be used to specify which form of link should be sent in the response of this call:
- “Link”: A link will be answered in the “sendPaymentReturn” field
- “SMS”: The link is sent by SMS to the customer phone number
- “QR”: The link is sent as a QR code image the customer can scan
“captureMode” must be set to “Immediate”
| ResponseCode | ResponseMessage | Comment |
|---|---|---|
| 000 | API Success | |
| 001 | Transaction Date is not today | Check field “merchantTransactionDate” |
| 002 | Transaction Key already used | Pair “merchantTransactionDate”, “merchantTransactionId” already used |
| 040 | Seller not allowed | SellerID used is not activated |
| 041 | Seller not trained to sell this payment product | SellerID used is not authorized to sell a loan product (legally required to be trained to do so) |