#Tino-Klarna
1 messages · Page 1 of 1 (latest)
req_I1FkxCto4sqJwa
{
"error": {
"code": "invalid_request_error",
"message": "BAD_VALUE|||Bad value: order_amount",
"type": "invalid_request_error"
}
}
Umm this looks weird. Let me ask my colleague
Hi, why is the total amount of 650000, while there are 2 items of amount 5500 and 1000?
Isn't that total amount has two extra zeros?
Hmm I see on the request req_I1FkxCto4sqJwa you sent 650000 as amount
Can you check in your Dashboard log?
It's maybe your code converting it?
'type' => 'klarna',
'amount' =>65,
'currency' => 'eur',
'klarna' => [
'product' => 'payment',
'purchase_country' => 'IT',
],
'source_order' => [
'items' => [
[
'type' => 'sku',
'description' => 'Grey cotton T-shirt',
'quantity' => 1,
'currency' => 'eur',
'amount' => 5500,
], [
'type' => 'tax',
'description' => 'Taxes',
'currency' => 'eur',
'amount' => 1000,
], [
'type' => 'shipping',
'description' => 'Free Shipping',
'currency' => 'eur',
'amount' => '0',
]
],
],
this is a correct payload, please check if api convert a correct value
ty
It looks weird to me, don't know which API Client are you using. But if you provide a new request id I can check its paramaters
req_gICZhdk5PE5gMa
okie that request looks good