POST /payment-sessions/{payment_id}
Show Card Object
curl -X POST "https://api.spendjuice.com/payment-sessions/{payment_id}" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "card": { "card_number": "encrypted_card_number", "cvv": "encrypted_cvv", "expiry_month": 1, "expiry_year": 39 } }'
Capture Response
{ "data": { "status": "authenticating", "auth_type": "3ds", "message": "3D Secure authentication required", "links": { "redirect_url": "https://3ds.issuer-bank.com/auth" } } }
3DS Verification
Wait for Completion
{ "data": { "status": "authenticating", "auth_type": "otp", "message": "OTP sent to registered phone number" } }
Submit OTP
POST /payment-sessions/{payment_id}/authorize { "otp": "123456" }
{ "data": { "status": "authenticating", "auth_type": "pin", "message": "Enter card PIN" } }
Submit PIN
POST /payment-sessions/{payment_id}/authorize { "pin": "1234" }