Payment
Available Methods
| Method ID | Type |
|---|---|
| db_hhuk | Bank Transfer |
| cc_intx | Credit Card |
| w_intx_id | E-wallet |
Request
[GET] {PROVIDER_URL}/api/cashier/payment| Parameter | Type | Required | Description |
|---|---|---|---|
| merchant_id | integer | yes | provided by the game provider |
| method | string | yes | provided by the game provider |
| currency | string(3) | yes | e.g. "USD" |
| merchant_name | string | no | |
| merchant_order_id | string | yes | Merchant's order ID |
| description | string | yes | Description of the transaction |
| redirect_url | string | yes | When the transaction processed, the client will be redirected to this address |
| customer | object | yes | Client personal data |
| customer.first_name | string | yes | |
| customer.last_name | string | yes | |
| customer.email | string | yes | |
| customer.phone | string | no | |
| customer.country_code | string(2) | yes | Country Codes Alpha-2 |
Request Body
{
"merchant_id": 1000000,
"method": "xxxxx",
"amount": 50,
"currency": "USD",
"merchant_name": "test_merchant",
"merchant_order_id": "ORDER-12345",
"description": "test...",
"redirect_url": "http://example.com",
"customer": {
"first_name": "John",
"last_name": "Doe",
"email": "test@example.com",
"phone": "+1xxxxxxxxxx",
"country_code": "US"
}
}Response
Successful response will be returns as json object.
{
"status": 200,
"pay_url": "{CASHIER_URL}/api/cashier/pay/xxxxxxxxxxxxx"
}Callback Example Code
{
"id": "xxxx-xxxxx-xxx",
"merchant_id": 1000000,
"transaction_id": "xxxxxxx",
"merchant_tx_id": "xxxxxxx",
"status": 1,
"amount": 100.0,
"currency": "USD",
"method": "xxxx",
"description": "test transaction",
"created_at": "2024-07-25 22:53:38",
"updated_at": "2024-07-25 22:53:38",
"payer": {
"id": 9999999,
"payment_transaction_id": "xxxx-xxxxx-xxx",
"first_name": "John",
"last_name": "Doe",
"email": "test@example.com",
"phone": "+1xxxxxxxxxx",
"country_code": "US",
"created_at": "2024-07-25 22:53:38",
"updated_at": "2024-07-25 22:53:38"
}
}Status Codes
{
"Pending": 0,
"Success": 1,
"Declined": 2
}