API Methods
Payment

Payment

Available Methods

Method IDType
db_hhukBank Transfer
cc_intxCredit Card
w_intx_idE-wallet

Request

[GET] {PROVIDER_URL}/api/cashier/payment
ParameterTypeRequiredDescription
merchant_idintegeryesprovided by the game provider
methodstringyesprovided by the game provider
currencystring(3)yese.g. "USD"
merchant_namestringno
merchant_order_idstringyesMerchant's order ID
descriptionstringyesDescription of the transaction
redirect_urlstringyesWhen the transaction processed, the client will be redirected to this address
customerobjectyesClient personal data
customer.first_namestringyes
customer.last_namestringyes
customer.emailstringyes
customer.phonestringno
customer.country_codestring(2)yesCountry 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
}