Accept Payments
Integrate Plexy to accept payments via the Sessions or Advanced flow
Accept Payments
Sessions Flow
Embedded checkout — server creates a session, client renders the Plexy component
Advanced Flow
Direct API — your server calls the Payments API, you render the UI
Sessions flow
curl -X POST https://api.plexypay.com/v2/sessions \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 10000, "currency": "KZT" },
"returnUrl": "https://your-site.com/checkout/complete",
"reference": "order_12345"
}'Advanced flow
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 10000, "currency": "KZT" },
"paymentMethod": {
"type": "scheme",
"encryptedCardNumber": "...",
"encryptedExpiryMonth": "...",
"encryptedExpiryYear": "...",
"encryptedSecurityCode": "..."
},
"reference": "order_12345",
"returnUrl": "https://your-site.com/checkout/complete"
}'