v1
latestOpenAPI 3.0.02026-07-265892227.1 KBPayments
Authenticate the current payment
Some circuit have authentication restrictions which requires an extra step. This endpoint is here to allow you to make that extra steps. It happens after a payment has been requested and when that payment moved to the "action_required" state.
post/payment-intents/{id}/authentication
Path parameters
idstring required
Identifier of the PaymentIntent requiring authentication.
Headers
ApiKeystring required
Your api key. To create a key, please get into our dashboard. If you don't have access to it, please reach the Support team.
MerchantIdstring required
Your merchant ID. This information is available in our dashboard. If you don't have access to it, please reach the Support team.
Environment'live' | 'sandbox' required
Allow you to choose between the sandbox mode to perform some tests or the live mode for real world transactions.
Request body
Example request
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnRlbnRJZCI6InBpXzBkeV9GZTJXQl8wNVVBdDdqMFloaSIsIm1lcmNoYW50SWQiOiIzIiwibW9kZSI6InNhbmRib3giLCJpYXQiOjE2OTUxMjY1MDJ9.8cpkja3PgSLFXiMW9BJN3ec5ndJFE2kIHvXvc834Wpo"
}Response
Example response
{
"id": "pi_z1urYtVFgEebtcj8fxp4v",
"createdAt": "2020-10-15T12:09:49.355Z",
"updatedAt": "2020-10-15T12:16:26.128Z",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElkIjoiMTYiLCJtb2RlIjoic2FuZGJveCIsInBheW1lbnRJZCI6InBpX3oxdXJZdFZGZ0VlYnRjajhmeHA0diIsImlhdCI6MTYwMjc1OTE4M30.OZ0fDnMVWvcT-gRthyBD58PFC20gabGKt1UPRe4aNi4",
"purchaseReference": "ref_2020_11_10_001",
"customerReference": "cust_01924059",
"status": "successful",
"amount": 100,
"currency": "XOF",
"payments": [
{
"id": "pay_QW2d6JnqiatcH8KhK0mD1",
"intentId": "pi_z1urYtVFgEebtcj8fxp4v",
"createdAt": "2020-10-15T12:09:49.355Z",
"updatedAt": "2020-10-15T12:16:26.128Z",
"status": "successful",
"amount": 100,
"currency": "XOF",
"method": "credit_card",
"country": "CI",
"fees": [
{
"id": "lAe5HnFpvOjwdT9vSIgPA",
"amount": 5,
"currency": "XOF"
}
],
"nextAction": {
"data": {
"method": "post"
}
},
"paymentInformation": {
"recipient_name_hashmac": "a1b2c3d4e5f6",
"recipient_phone_hashmac": "a1b2c3d4e5f6",
"customer_id_hashmac": "a1b2c3d4e5f6"
},
"onSuccessRedirectionUrl": "https://my.website.com/cancel",
"onFailedRedirectionUrl": "https://my.website.com/finish"
}
],
"mode": "live",
"nextAction": {
"data": {
"method": "post"
}
},
"overrideBusinessName": "MyBusiness",
"subMerchantId": "submerchant_123"
}