我正在将Klarna集成到一个与Adyen绑定的沙箱环境中。我已经精确地跟踪了文档,但是在小部件中没有显示“继续”按钮时出现了问题,从而阻塞了结帐过程。
-预期-

-ACTUAL (缺失按钮)-

重新创建的代码:
邮寄至:https://checkout-test.adyen.com/v67/payments
{
"merchantAccount": "MERCHANTLLC",
"reference": "123",
"paymentMethod": {
"type": "klarna_account"
},
"amount": {
"currency": "USD",
"value": 18210
},
"shopperLocale": "en_US",
"countryCode": "US",
"telephoneNumber": "1111111111",
"shopperEmail": "test@gmail.com",
"shopperName": {
"firstName": "John",
"lastName": "Doe"
},
"returnUrl": "http://someurl.com",
"lineItems": [
{
"quantity": 1,
"amountExcludingTax": "16900",
"taxPercentage": "775",
"description": "asdfasdf",
"id": "123",
"taxAmount": 1310,
"amountIncludingTax": "18210",
"productUrl": "http://producturl.com"
}
]
}返回client_token:"ABC123“。然后使用该令牌通过克拉纳博士加载小部件。
window['Klarna']['Payments'].init({
client_token: 'ABC123'
})
window['Klarna']['Payments'].load({
container: '#klarna-payments-container',
payment_method_category: 'pay_over_time',
instance_id: "klarna-payments-instance"
},
function (res) {
console.log(res);
}){show_form: true},小部件加载上面的实际(缺少按钮)图片。我在这里错过了什么??我不明白为什么在小部件中没有显示“继续”按钮。这个按钮是什么,然后授权用户在克拉纳,获取计费信息等。任何帮助将不胜感激!目标是显示“继续”按钮。发布于 2021-08-24 03:01:25
在和克拉纳队谈话后回答了我自己的问题。在开发端,您需要创建自己的按钮并调用“授权”端点。文档可以在这里找到:https://developers.klarna.com/documentation/klarna-payments/integration-guide/authorize/
https://stackoverflow.com/questions/68776093
复制相似问题