Learn how to initialize card payments securely via the Juicyway API
POST /payment-sessions
Show Customer Fields
business
individual
Show Order Fields
Show Items Fields
{ "customer": { "first_name": "John", "last_name": "Doe", "email": "john.doe@example.com", "phone_number": "+2348118873422", "billing_address": { "line1": "123 Main St", "line2": "Suite 456", "city": "Springfield", "state": "CA", "country": "US", "zip_code": "12345" }, "ip_address": "127.0.0.1" }, "description": "Premium Package Purchase", "currency": "USD", "amount": 100000, "payment_method": { "type": "card" }, "reference": "ord_1234567890", "order": { "identifier": "ORD12345", "items": [ { "name": "Premium Package", "type": "digital" } ] } }
Successful Payments
3DS Authentication Required
Failed Transactions
{ "data": { "auth_type": "3ds", "expires_at": "2024-03-01T08:43:08.110470Z", "links": {}, "message": "Created", "payment": { "amount": 100000, "cancellation_reason": null, "currency": "USD", "customer": { "billing_address": { "city": "Springfield", "country": "US", "line1": "123 Main St", "line2": "Suite 456", "state": "CA", "zip_code": "12345" }, "email": "john.doe@example.com", "first_name": "John", "id": "cust_1234567890", "last_name": "Doe", "phone_number": "+2348118873422" }, "date": "2024-02-29T20:43:08.344264Z", "description": "Premium Package Purchase", "id": "pay_1234567890", "order": { "identifier": "ORD12345", "items": [ { "name": "Premium Package", "type": "digital" } ] } "mode": "live", "payment_method": { "type": "card" }, "reference": "ord_1234567890", "status": "pending" }, "status": "pending" } }
3D Secure Authentication
{ "data": { "auth_type": "3ds", "message": "3DS authentication required", "links": { "redirect_url": "https://3ds.payment-processor.com/auth" } } }
OTP Validation
{ "data": { "auth_type": "otp", "message": "Please enter OTP to complete transaction" } }
POST /payment-sessions/{payment_id}/authorize { "otp": "123456" }
PIN Verification
{ "data": { "auth_type": "pin", "message": "Please enter card PIN" } }
POST /payment-sessions/{payment_id}/authorize { "pin": "1234" }
Data Encryption
PCI Compliance
API Authentication