In-App支付


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

Method:POST

POST data type:Json

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

签名示例:

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

"amount=1&currency=EUR&description=YabandPay test&method=v3.CreatePaymentsAlipayAppPay&notify_url=https://www.yabandpay.com/notify&order_id=202412654894165484&pay_method=online&redirect_url=https://www.yabandpay.com/redirect_url&sub_pay_method=Alipay&time=1546588959&timeout=0&user=016683"

得到的 stringA 使用 secret_key做签名

得到的签名如下:

"57e96f6e46e19138f1418853c7b62f0d327c889e28c20858b6fd8ec4ae709454"

提交示例:

{
    "user": "016683",
    "sign": "d66e3ee2c5b9d9563be1a6af88de1d90d9596dab0420ac9e721cbe8eaf16bd18",
    "method": "v3.CreatePaymentsAlipayAppPay",
    "time": 1546588959,
    "data": {
        "description": "YabandPay test",
        "timeout": "0",
        "pay_method": "online",
        "sub_pay_method": "Alipay",
        "order_id": "202412654894165484",
        "amount": "1",
        "currency": "EUR",
        "notify_url": "https://www.yabandpay.com/notify",
        "redirect_url": "https://www.yabandpay.com/redirect_url"
    }
}

返回示例:

{
  "status": true,
  "code": "200",
  "data": {
    "order_id": "2024051614252298405",
    "trade_id": "e5baf40b-08b2-4660-ed20-d632eeeceab3",
    "amount": "0.01",
    "currency": "EUR",
    "settlement_amount": "0.01",
    "settlement_currency": "EUR",
    "exchange_rate": "1",
    "parameters": {
      "pay_url": "https://open-sea-global.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=281666040097PyqF6IxZEzTURq7PhvTv3ken",
      "payments_data": "{\"displayPaymentAmount\":\"0.01\",\"displayPaymentCurrency\":\"EUR\",\"wallets\":[{\"enabled\":true,\"promoNames\":[\"{\\\"en_US\\\":\\\"test\\\",\\\"nl_NL\\\":\\\"test\\\"}\"],\"searchKeywords\":[\"dana wallet\"],\"walletName\":\"DANA\"}]}"
    },
    "state": "processing"
  },
  "message": ""
}

results matching ""

    No results matching ""