Card Payment (OTP/3DS)
POST/api/v1_0/cards/payment/:transaction_id/pay/card-otp
Submit an encrypted card payment for a registered transaction. Card data must be encrypted with the RSA public key from the Get Public Key endpoint.
Building encryptedCardData
Create a JSON object:
{
"PN": "4111111111111111",
"SC": "123",
"DT": "12/30",
"ID": "{{transaction_id}}",
"TX": 1234567890
}
Encrypt with RSA/PKCS#1 using the public key and encode to Base64.
3DS Handling
If the response has redirectType: "FORM", the redirectText contains a Base64-encoded HTML form that must be rendered in the payer's browser for 3DS authentication.
Request
Responses
- 200
Payment result