Auth flow for card transactions.
POST /payment-sessions/{payment_id}/authorize
// otp authorize
{
"otp": "123456" //5 or 6 digit string
}
// pin authorize
{
"pin": "1234" //4 digit string
}
// card_enroll & 3ds
{
"card_enroll": "" //string
}
// Cvv
{
"cvv": "123" //string
}
{
"data": {
"url": "",
"status": "captured|failed",
"message": "",
"payment": {
"id": ,
"currency": ,
"amount": ,
"description": ,
"payment_method": {
"card_number": "",
"expiry_month": ,
"expiry_year": ,
"id": "",
"type": "card"
},
"status": "pending",
"date": ,
"mode": ,
"customer": {
"first_name": ,
"last_name": ,
"email": ,
"billing_address": {
"line1": ,
"line2": ,
"city": ,
"state": ,
"zip_code": ,
"country": ,
}
},
"reference": ,
"metadata": {}
}
}
}