Native Payment


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

Method:POST

POST data type:Json

Parameter Type Description Mark
user String the UID of cashier account Required
sign String signature Required
method String v3.CreatePaymentsWechatMiniPay Required
time Long timestamp Required
  • Parameter
Parameter Type Description Mark
order_id String order id from Merchant Required
amount String format in cents: € 24.99 should be 24.99, the min amount is EUR 0.10 or CNY1 Required
currency String ISO 4217, For example EUR, CHF Required
description String der description Required
demo String custom field Optional
timeout String alue 0 means 1440 minutes Optional
notify_url String asynchronous notification url Required
redirect_url String the redirect URL after payment is completed Required Optional

Signature:

Lexicographical sequence and URL key-value format new string

"amount=1&currency=EUR&description=yaband test&method=v3.CreateWechatNativePay&notify_url=https://www.yabandmedia.com/pay/webhook.php&order_id=8898586245211552335&redirect_url=https://www.yabandmedia.com/pay/redirectpage.php&time=1568553105&timeout=0&user=h5@yaband.com"

Use stringA and secret_key to get stringSign

Get Signature:

"1c17042674ce8335b310088f402a8a1c175effad746c3a3500d1ba84ce393d67"

Example Request:

{
    "user": "h5@yaband.com",
    "sign": "1c17042674ce8335b310088f402a8a1c175effad746c3a3500d1ba84ce393d67",
    "method": "v3.CreateWechatNativePay",
    "time": 1568553105,
    "data": {
            "order_id": "8898586245211552335",
            "amount": "1",
            "currency": "EUR",
            "timeout": "0",
            "description": "yaband test",
            "redirect_url": "https://www.yabandmedia.com/pay/redirectpage.php",
            "notify_url": "https://www.yabandmedia.com/pay/webhook.php"
    }
}

Example Response:

{
    "status": true,
    "code": "200",
    "data": {
        "order_id": "8898586245211552335",
        "trade_id": "289c6441-056e-676e-80e6-672651911070",
        "amount": "1.00",
        "currency": "EUR",
        "settlement_amount": "1.00",
        "settlement_currency": "EUR",
        "exchange_rate": "1",
        "url": "https://partner.yabandpay.com/payments/wechat_native_callback/order/Mjg5YzY0NDEtMDU2ZS02NzZlLTgwZTYtNjcyNjUxOTExMDcw",
        "state": "processing"
    },
    "message": ""
}

results matching ""

    No results matching ""