iDEAL支付


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 iDEAL,iDEAL Fast Checkout(快速结账方式) 必填
order_id String 商户的订单ID 必填
amount String 金额数字。例如 € 24.99 应该写成24.99,欧元金额>=1 必填
currency String EUR 必填
bic String 用户默认银行代码 选填
description String 订单描述 必填
demo String 自定义字段 选填
timeout String 过期时间0-1440 分钟,如不设置默认1440分钟 必填
redirect_url String 支付完成后跳转地址 选填
notify_url String 支付完成后异步通知地址 必填

签名示例:

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

"amount=1&currency=EUR&bic=ABNANL2A&demo=test&description=YabandPay test&method=v3.CreatePayments&notify_url=https://www.yabandpay.com/notify&order_id=2024659859874654848&pay_method=online&redirect_url=https://www.yabandpay.com&sub_pay_method=iDEAL&time=1555498137&timeout=0&user=016683"

得到的 stringA 使用 secret_key做签名

得到的签名如下:

"e297397410a1e604f69a192d49e116e2d925801a2cfba2911aef56668a31e6d3"

提交示例:

{
    "user": "016683",
    "sign": "e297397410a1e604f69a192d49e116e2d925801a2cfba2911aef56668a31e6d3",
    "method": "v3.CreatePayments",
    "time": "1555498137",
    "data": {
        "description": "YabandPay test",
        "timeout":"0",
        "pay_method": "online",
        "sub_pay_method": "iDEAL",
        "bic": "ABNANL2A",
        "order_id": "2024659859874654848",
        "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": "2024659859874654848",
        "trade_id": "824f354c-e60f-bcd3-48a4-13c217be1b78",
        "amount": "1.00",
        "currency": "EUR",
        "bic": "ABNANL2A",
        "url": "https://pay.yabandpay.com/payments/callback/order/ODI0ZjM1NGMtZTYwZi1iY2QzLTQ4YTQtMTNjMjE3YmUxYjc4",
        "state": "processing"
    },
    "message": ""
}

[!TIP|style:flat]

参数bic说明

从2024年7月1日起,依照iDEAL要求,bic不需传此参数。

参数sub_pay_method说明

iDEAL iDEAL Fast Checkout都是iDEAL的支付方式,在调用接口后我们都会返回url提供跳转支付。 iDEAL Fast Checkout旨在简化消费者的购物结账流程,减少消费者在结账时需要填写的信息和操作步骤,从而提高购物体验和转化率,整个过程流畅快捷,提升了购物体验。 在用户支付成功后请调用订单查询,获取checkout_data,里面包含customerbillingAddressshippingAddress

更多信息:

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

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

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

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

results matching ""

    No results matching ""