Bad value: order_lines[0].total_tax_amount
-
Hello. Sometimes klarna is unavailable, logs point to wrong total tax amount
Accept: */*
Accept-Encoding: identity
Content-Length: 1333
Content-Type: application/json
Host: payments-acquiring-service-eu.production.c2c.klarna.net:443
User-Agent: WordPress/6.7.1; - WooCommerce: 9.4.2 - KP: 3.8.3 - PHP Version: 8.2.15 - Krokedil
klarna-correlation-id: 2ebcf8fc-e49e-43aa-8c11-81e9ae672b10{
"purchase_country": "IT",
"purchase_currency": "EUR",
"locale": "it-IT",
"order_amount": 1200,
"order_tax_amount": 100,
"order_lines": [
{
"image_url": "-removed-",
"name": "-removed-",
"product_url": "-removed-",
"quantity": 1,
"quantity_unit": "pcs",
"reference": "-removed-",
"tax_rate": 2300,
"total_amount": 620,
"total_discount_amount": 0,
"total_tax_amount": 100,
"type": "physical",
"unit_price": 620
},
{
"name": "-removed-",
"quantity": 1,
"quantity_unit": "pcs",
"reference": "flat_rate:14",
"tax_rate": 0,
"total_amount": 600,
"total_discount_amount": 0,
"total_tax_amount": 0,
"type": "shipping_fee",
"unit_price": 600
}
],
"customer": {
"type": "person"
},
"billing_address": {
"given_name": "test",
"family_name": "test",
"email": "-removed-",
"phone": "-removed-",
"street_address": "asd 12",
"street_address2": "",
"postal_code": "20019",
"city": "asxasxa",
"region": "AL",
"country": "IT"
},
"shipping_address": {
"given_name": "test",
"family_name": "test",
"email": "-removed-",
"phone": "-removed-",
"street_address": "asd 12",
"street_address2": "",
"postal_code": "20019",
"city": "asxasxa",
"region": "AL",
"country": "IT"
},
"merchant_urls": {
"authorization": "-removed-wc-api/KP_WC_AUTHORIZATION/"
}
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.