Skip to main content
  • 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-id if 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.
Check the response and keep the payment_id for the next steps.

3) Confirm (if your flow requires it)

If your integration uses a two-step flow or needs an explicit confirmation:
For SCA/3DS flows, follow 3DS & SCA and verify the final status before fulfilling.

4) Capture or void (for auth-then-capture flows)

Capture a previously authorized payment (full or partial):
To cancel an authorization instead of capturing, see Capture & Void.

5) Issue a refund

Create a refund for a payment:
See Create & List Refunds for parameters and pagination.
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
Start with Webhooks — Overview and Signing & Retries.

7) Testing


Production readiness checklist