我在Adyen建立了一个测试帐户。我尝试通过测试API进行付款。将以下负载提供给以下端点:
https://checkout-test.adyen.com/v37/payments
有效载荷/正文:
{
amount: {
currency: "EUR",
value: price
},
countryCode: "NL",
shopperLocale:"nl_NL",
reference: description,
paymentMethod: {
type: "ideal"
},
returnUrl: "https://xxx.nl",
merchantAccount: "xxxxx"
}
按预期返回带有重定向URL的响应。当我转到该URL时,可以按预期在不同的银行之间进行选择。只有当我选择要付款的银行时,页面才会告诉我Error: Signature not supplied
。这是什么意思?我该怎么做才能成功完成我的测试付款?
答案 0 :(得分:0)
Checkout API希望您提供用于选择和收集付款方式详细信息的UI /图像。这意味着您将需要收集购物者对理想银行的选择。
您可以从/ paymentMethods确定必填字段。
从/ paymentMethods
返回{
"paymentMethods":[{
"name":"iDEAL",
"type":"ideal",
"details":[{
"key":"issuer",
"type":"select",
"items":[{
"name":"Test Issuer",
"id":"1121"
},
...
]
}]
},
...
]
}
假设您选择“测试发布者”,则有效载荷/主体将包含{strong> 1121
的paymentMethod.issuer
{
amount: {
currency: "EUR",
value: price
},
countryCode: "NL",
shopperLocale:"nl_NL",
reference: description,
paymentMethod: {
type: "ideal",
issuer: "1121"
},
returnUrl: "https://xxx.nl",
merchantAccount: "xxxxx"
}