- Production:
https://api.paymnt.cloud - Sandbox:
https://sandbox.paymnt.cloud
You can also use the API reference tab with Try it. Enter your api-key once, and requests will use it automatically.
Prerequisites
- A secret API key (server-side only). See Authentication.
- Optional:
x-profile-idif profiles are enabled. - Use Sandbox during integration; switch to Production with the same code.
1) Base URL and headers
2) Create a payment
Send the minimal request your use case requires. Refer to the API reference for available fields.3) Confirm (if your flow requires it)
If your integration uses a two-step flow or needs an explicit confirmation:4) Capture or void (for auth-then-capture flows)
Capture a previously authorized payment (full or partial):5) Issue a refund
Create a refund for a payment:6) Webhooks (recommended)
Use webhooks to keep your system in sync (e.g., succeeded, failed, refunded):- Expose a secure endpoint (e.g.,
/webhooks/payments) - Verify signatures; retry on 5xx
- Apply idempotent updates using the event id
7) Testing
- Sandbox scenarios: Sandbox
- Test PANs and SCA: Test Cards & 3DS