This method allows you to create a new payment and get its unique pay_id
.
POST /generate
POST
Content-Type: application/json
Parameter | Type | Required | Description |
---|---|---|---|
public_key |
string | Yes | Merchant's public key |
amount |
float | Yes | Payment amount |
order_id |
string | Yes | Order ID in merchant system |
redirect_url |
string | Yes | Redirect after payment |
currency |
string | Yes | Currency code (e.g. USD, EUR) |
{ "status": 0, "result": "https://example.com/link/UNIQUE_PAY_ID" }
Code | Description |
---|---|
0 | Success. Payment created. |
101 | Validation error while saving payment. |
102 | Unexpected error during request processing. |
103 | Missing required parameter. |
104 | Public key not found. |
POST /generate Content-Type: application/json { "public_key": "abc123xyz", "amount": 150.00, "order_id": "ORD987654", "redirect_url": "https://example.com/", "currency": "USD" }
This link to redirect payment page.
GET /link/UNIQUE_PAY_ID
GET
Parameter | Type | Required | Description |
---|---|---|---|
id |
string | Yes | Pay ID (UNIQUE_PAY_ID ) |
This method allows you to retrieve the status of a payment by pay_id
and public_key
.
GET /check-status
GET
Parameter | Type | Required | Description |
---|---|---|---|
id |
string | Yes | Payment ID (pay_id ) |
public_key |
string | Yes | Merchant's public key |
{ "status": 0, "result": "Success. Payment found", "data": { "status": 1, "order_id": "123456", "currency": "USD", "reference_id": "TXN123456", "amount": 100.00, "error": "" } }
Code | Description |
---|---|
0 | Success. Payment found. |
101 | Payment not found. |
102 | Error retrieving data. |
103 | Missing required parameter. |
104 | Public key not found. |
This request is sent several times until it receives code HTTP 200
POST https://your-domain.com/callback-url
POST
{ "status": 2, "order_id": "ORD123456", "currency": "USD", "reference_id": "TXN7890", "amount": 100.00, "error": "" }
Code | Status | Description |
---|---|---|
0 | UNPAID | Payment created but not completed |
1 | PAID | Payment was completed successfully |
2 | DELIVERED | Product or service has been delivered |
3 | FAILED | Payment failed |
4 | DELIVERING | Delivery is in progress |
5 | CANCELED | Payment or order has been canceled |
6 | AUTHORIZED | Payment is authorized but not captured |
7 | UNKNOWNDELIVERY | Delivery status could not be determined |
8 | FROZEN | Payment or account is frozen |
9 | REFUNDED | Payment was refunded |
16 | PAYING | Payment is currently being processed |