MB Way

MB Way 支持通过设置 pay_method 为 online、sub_pay_method 为 MB Way 发起在线支付订单。


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 MB Way 必填
order_id String 商户的订单ID 必填
amount String 金额数字。例如 EUR 24.99 应写成 24.99 必填
currency String EUR 必填
description String 订单描述 必填
demo String 自定义字段 选填
timeout String 过期时间单位分钟(0-1440) 必填
redirect_url String 支付完成后跳转地址 选填
notify_url String 支付完成后异步通知地址 必填

签名示例:

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

"amount=1&currency=EUR&demo=test&description=YabandPay test&method=v3.CreatePayments&notify_url=https://www.yabandpay.com/notify&order_id=20240726785412369&pay_method=online&redirect_url=https://www.yabandpay.com&sub_pay_method=MB Way&time=1646388458&timeout=0&user=016683"

得到的 stringA 使用 secret_key 做签名

得到的签名如下:

"91ddb030c305bda20dda7d79c227dfe5b6340648443cb864a2814fb6c8c09f44"

提交示例:

{
  "user": "016683",
  "sign": "91ddb030c305bda20dda7d79c227dfe5b6340648443cb864a2814fb6c8c09f44",
  "method": "v3.CreatePayments",
  "time": 1646388458,
  "data": {
    "description": "YabandPay test",
    "timeout": "0",
    "pay_method": "online",
    "sub_pay_method": "MB Way",
    "order_id": "20240726785412369",
    "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": "20240726785412369",
    "trade_id": "7f1c1d47-9e36-42f7-96f8-59c4fd7a1d11",
    "amount": "1.00",
    "currency": "EUR",
    "url": "https://pay.yabandpay.com/pay_method/bWJfd2F5/N2YxYzFkNDctOWUzNi00MmY3LTk2ZjgtNTljNGZkN2ExZDEx",
    "state": "processing"
  },
  "message": ""
}

更多信息:

返回结果:
  1. 若调用成功,则返回 "status": true

  2. 若调用失败,则返回 "status": false

我们强烈建议同时使用订单查询和异步通知来同步和更新支付状态,以确保支付信息的实时准确性。

返回代码:
Status Code Message
true 200 Success
false -1000 Internal error
false -3001 Required field is missing
false -403 The signature Error
false -4011 Not support the payment method

results matching ""

    No results matching ""