Payments
- Overview
- Encryption Keys
- Initialize Payment
- Capture Payment
- Authorize Payment
- Payment Widget
Payment Transactions
Transfers
- Transfers Overview
- Beneficiaries
- Transfers
- Bulk Transfers
Exchange
- Market Makers
- Standing Orders
- Orders
- Rates
- Swaps
- Swap Configurations
Authorize Payment
Cards
Auth flow for card transactions.
Authorization
During the payment capture process, additional authentication steps may be required due to the specific card involved. These may include OTP validation, PIN validation, or even 3DS (3D Secure).
Copy
Ask AI
POST /payment-sessions/{payment_id}/authorize
Copy
Ask AI
// 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
}
Sample Response
Copy
Ask AI
{
"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": {}
}
}
}
On this page
Assistant
Responses are generated using AI and may contain mistakes.