Cancel Payment Order


[!TIP|style:flat]

Payment order can be cancelled before it is completed.

API URL:https://mapi.yabandpay.com/Payments

Method:POST

POST data type:Json

Parameter Type Description Required
user String the UID of cashier account Required
sign String signature Required
method String v3.CancelPayment Required
time Long timestamp
  • Parameter
Parameter Type Description Required
trade_id String the trade_id from YabandPay Required

Signature:

Lexicographical sequence and URL key-value format new string

"method=v3.CancelPayment&time=1546588959&trade_id=4a49ffb3-a30f-ba92-9422-1969afb6f121&user=016683"

Use stringA and secret_key to get stringSign

Get Signature:

"ce35c72989dbda9a3393f4c2810ea71bd7755dd25061f1ae8073aea8e2db6dbe"

Example Request:

{
    "user": "016683",
    "sign": "ce35c72989dbda9a3393f4c2810ea71bd7755dd25061f1ae8073aea8e2db6dbe",
    "method": "v3.CancelPayment",
    "time": 1546588959,
    "data": {
        "trade_id": "4a49ffb3-a30f-ba92-9422-1969afb6f121"
    }
}

Example Response:

{
    "status": true,
    "code": "200",
    "data": {
        "type": "payment",
        "user": "016683",
        "amount": "0.10",
        "currency": "EUR",
        "settlement_amount": "0.10",
        "settlement_currency": "EUR",
        "exchange_rate": "1",
        "trade_id": "4a49ffb3-a30f-ba92-9422-1969afb6f121",
        "description": "YabandPay test",
        "order_id": "280244567856723026",
        "createDate": "1706771212",
        "demo": "test",
        "transaction_id": "",
        "state": "cancelled"
    },
    "message": ""
}

results matching ""

    No results matching ""