Bancontact


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

Method:POST

POST data type:Json

参数 类型 描述 是否必填
user String 收银员账号的UID 必填
sign String 签名 必填
method String v3.CreatePayments 必填
time Long 时间戳 必填
  • 参数
Parameter Type Description 是否必填
pay_method String online 必填
sub_pay_method String Bancontact 必填
order_id String 商户的订单ID 必填
amount String 金额数字。例如 € 24.99 应该写成24.99,欧元金额>=1 必填
currency String EUR 必填
description String 订单描述 必填
demo String 自定义字段 选填
timeout String 过期时间0-1440 分钟,如不设置默认1440分钟 必填
redirect_url String 支付完成后跳转地址 选填
notify_url String 支付完成后异步通知地址 必填

签名示例:

拼接为URL方式并排序后的字符串

"amount=1¤cy=EUR&demo=test&description=YabandPay test&method=v3.CreatePayments¬ify_url=https://www.yabandpay.com/notify&order_id=2024626126358654&pay_method=online&redirect_url=https://www.yabandpay.com&sub_pay_method=bancontact&time=1546588959&timeout=0&user=016683"

得到的 stringA 使用 secret_key做签名

得到的签名如下:

"3b4dbf35d642422a678c638f6be1a414fdfa5f0a34758797a6654d8fdf8d350c"

提交示例:

{
    "user": "016683",
    "sign": "3b4dbf35d642422a678c638f6be1a414fdfa5f0a34758797a6654d8fdf8d350c",
    "method": "v3.CreatePayments",
    "time": 1546588959,
    "data": {
        "description": "YabandPay test",
        "timeout":"0",
        "pay_method": "online",
        "sub_pay_method": "bancontact",
        "order_id": "2024626126358654",
        "amount": "1",
        "currency": "EUR",
        "redirect_url": "https://www.yabandpay.com",
        "notify_url": "https://www.yabandpay.com/notify",
        "demo": "test"
    }
}

返回示例:

{
    "status": true,
    "code": "200",
    "data": {
        "order_id": "2024626126358654",
        "trade_id": "6f83a1ce-b46a-46a1-c016-4c213dbffaca",
        "amount": "1.00",
        "currency": "EUR",
        "settlement_amount": "1.00",
        "settlement_currency": "EUR",
        "exchange_rate": "1",
        "url": "https://partner.yabandpay.com/payments/callback/order/NmY4M2ExY2UtYjQ2YS00NmExLWMwMTYtNGMyMTNkYmZmYWNh",
        "state": "processing"
    },
    "message": ""
}

results matching ""

    No results matching ""