Payment API integration for Pakistani websites and apps
Create payments from your own system and get a clear paid status back, without handling wallet credentials yourself.
How the integration works
- Get your API keys from Merchant → API keys and set your webhook URL.
- Your server creates a payment: POST /api/v1/pkr for JazzCash, Easypaisa or QR, or POST /api/v1/invoices for USDT on BEP-20.
- Send the customer to the checkout_url in the response. CryptoEze shows the payment page and returns them to your return_url.
- Confirm the payment only from the signed webhook, or a server-side status check. Never trust the customer returning to your page.
The two create calls
Every create call takes an Idempotency-Key, one unique key per order. If your server retries with the same key, you get the same payment back, never a second one.
Webhooks you can trust
CryptoEze posts signed JSON to your webhook URL whenever a payment changes. PKR events are payment.paid, payment.failed and payment.refunded. USDT events are invoice.paid, invoice.partial, invoice.expired, invoice.cancelled and invoice.invalid.
Every webhook carries an X-CryptoEze-Signature header with a timestamp and an HMAC-SHA256 signature. Verify it with your webhook signing secret, check the timestamp is fresh, and answer HTTP 200. Every event has a unique id: save it and answer 200 again if the same id arrives twice.
Who can integrate
Approved merchants. Developer access is part of the merchant account: issue a secret key, keep it on your server only, and never put it in a browser, app or public code.
Frequently asked questions
Which payment methods does the API support?
JazzCash, Easypaisa and QR through POST /api/v1/pkr, and USDT on BEP-20 through POST /api/v1/invoices.
How do I know a payment is really paid?
Only trust the signed webhook (payment.paid or invoice.paid) or a server-side status check (GET /api/v1/pkr/ID or GET /api/v1/invoices/ID). Never trust the customer returning to your page.
Can a retry double-charge my customer?
No. Send a unique Idempotency-Key with every create call. A retry with the same key returns the same payment, never a second one.
Ready to start?
Create an account and apply as a merchant. Every merchant is reviewed before taking payments.
Create an account See pricing Ask a question