Query Payment Order


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.QueryOrder Required
time Long timestamp Required
  • 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.QueryOrder&time=1546588959&trade_id=a8d9be05-8b39-a766-dad0-553b0640d06a&user=016683"

Use stringA and secret_key to get stringSign

Get Signature:

"5c8dada0e7369f2b0e42887bda855a278f064b5d34c5aa4bfd03b74310c50102"

Example Request:

{
    "user": "016683",
    "sign": "5c8dada0e7369f2b0e42887bda855a278f064b5d34c5aa4bfd03b74310c50102",
    "method": "v3.QueryOrder",
    "time": 1546588959,
    "data": {
        "trade_id": "a8d9be05-8b39-a766-dad0-553b0640d06a"
    }
}

Example Response:

{
    "status": true,
    "code": "200",
    "data": {
        "transaction_info": 
            {
                "trade_id": "a8d9be05-8b39-a766-dad0-553b0640d06a",
                "merchant_name": "Yaband Telecom B.V.",
                "store_name": "Test",
                "user": "016683",
                "cashier_name": "H Feng",
                "pay_method": "online",
                "sub_pay_method": "WeChat Pay",
                "order_id": "20180902014018888",
                "amount": "0.10",
                "currency": "EUR",
                "settlement_amount": "0.10",
                "settlement_currency": "EUR",
                "exchange_rate": "1",
                "description": "YabandPay test",
                "created_at": "1555496062",
                "redirect_url": "",
                "notify_url": "https://www.yabandmedia.com/pay/webhook.php",
                "state": "paid",
                "time_out": "1440",
                "amount_cny": "",
                "merchant_cost": "0.01",
                "transaction_id": "4200000298201904178716759138",
                "paid_at": "1555496139",
                "refund_info": [
                    {
                        "refund_id": "d04b698f-b2f5-45fc-8d3a-3135f360b452",
                        "m_refund_id":"20240301143029616187",
                        "refund_time": "1555496301",
                        "state": "refund processing",
                        "refund_amount": "0.10",
                        "refund_currency": "EUR",
                        "refund_description": "Yaband Telecom B.V. refund",
                        "notify_url": "https://www.yabandmedia.com/pay/webhook.php",
                    }
                ]
            }
    },
    "message": ""
}

results matching ""

    No results matching ""