#Tino-Klarna

1 messages · Page 1 of 1 (latest)

mild needle
#

Could you provide the request id from your Stripe's dashboard?

proven wave
#

req_I1FkxCto4sqJwa

#

{
"error": {
"code": "invalid_request_error",
"message": "BAD_VALUE|||Bad value: order_amount",
"type": "invalid_request_error"
}
}

mild needle
#

Umm this looks weird. Let me ask my colleague

proven wave
#

ok i wait

#

you

mild needle
#

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?

proven wave
#

No amount total is 6500

#

'type' => 'klarna',
'amount' =>6500,

#

55$ is 5500

#

?

mild needle
#

Hmm I see on the request req_I1FkxCto4sqJwa you sent 650000 as amount

#

Can you check in your Dashboard log?

proven wave
#

yes, i see but i send 6500

#

why convert into 65000

#

?

#

ok i resolved

#

with

mild needle
#

It's maybe your code converting it?

proven wave
#

'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

mild needle
#

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

proven wave
#

req_gICZhdk5PE5gMa

mild needle
#

okie that request looks good