我们目前正在开发一个小型平台,我们在该平台上提供不同的价格计划。现在的想法是,用户只需单击一个按钮(例如20美元),然后重定向到Klarna进行付款。我根据文档将以下帖子发送到端点https://api.playground.klarna.com/checkout/v3/orders
。但我总是收到错误消息
对不起,您选择的发送选项无法处理。 请选择其他送货方式。
但是order_lines.type=digital
不应该送货吗?我究竟做错了什么?
我的帖子:
{
"order_id": "f3392f8b-6116-4073-ab96-e330819e2c07",
"name": "Women's Fashion",
"purchase_country": "DE",
"purchase_currency": "EUR",
"locale": "de",
"order_amount": 1900,
"order_tax_amount": 303,
"billing_address": {
"organization_name": "string",
"reference": "string",
"attention": "string",
"given_name": "John",
"family_name": "Doe",
"email": "john@doe.com",
"title": "Mr",
"street_address": "TestStreet 21",
"street_name": "TestStreet",
"street_number": "21",
"postal_code": "66111",
"city": "HomeCity",
"country": "DE"
},
"order_lines": [
{
"type": "digital",
"name": "Red T-Shirt",
"quantity": 1,
"quantity_unit": "pcs",
"unit_price": 1900,
"tax_rate": 1900,
"total_amount": 1900,
"total_tax_amount": 303
}
],
"merchant_urls": {
"terms": "https://www.estore.com/terms.html",
"cancellation_terms": "https://www.estore.com/terms/cancellation.html",
"checkout": "https://www.estore.com/checkout.html",
"confirmation": "https://www.estore.com/confirmation.html",
"push": "https://www.estore.com/api/push",
"validation": "https://www.estore.com/api/validation",
"shipping_option_update": "https://www.estore.com/api/shipment",
"address_update": "https://www.estore.com/api/address",
"notification": "https://www.estore.com/api/pending",
"country_change": "https://www.estore.com/api/country"
}
}