PlexySDK DOCS

Accept Payments

Integrate Plexy to accept payments via the Sessions or Advanced flow

Accept Payments

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"
  }'

On this page