Bad value: order_amount
-
Hello! I get “Bad value: order_amount” in my checkout when I use your plugin and the “Avalara AvaTax” plugin in the same time. Please help to resolve it. Thanks.
debug log:
03-25-2023 @ 02:29:54 - {"type":"POST","title":"Update session","arguments":{"country":"US","session_id":"0fb61141-6467-3964-aa5b-9f57d7fee1da","order_id":null,"include_address":false},"request":{"headers":{"Authorization":"Basic TjEwMDIwNTBfNzJjOGU3MDk3MzkyOlpJUGhSNzY3OHNLaEFXRmc=","Content-Type":"application\/json"},"user-agent":"WordPress\/6.1.1; https:\/\/vrlatech.com - WooCommerce: 7.5.0 - KP: 3.0.5 - PHP Version: 7.4.33 - Krokedil","method":"POST","timeout":10,"body":{"purchase_country":"US","purchase_currency":"USD","locale":"en-US","order_amount":59899,"order_tax_amount":0,"order_lines":[{"image_url":"https:\/\/vrlatech.com\/wp-content\/uploads\/2021\/10\/DSC05709-78x78.jpg","name":"FLUORA","product_url":"https:\/\/vrlatech.com\/product\/fluora-led-houseplant\/","quantity":1,"quantity_unit":"pcs","reference":30809,"tax_rate":0,"total_amount":49999,"total_discount_amount":0,"total_tax_amount":0,"type":"physical","unit_price":49999},{"name":"Sales Tax","quantity":1,"reference":"Sales Tax","tax_rate":0,"total_amount":0,"total_discount_amount":0,"total_tax_amount":0,"type":"sales_tax","unit_price":0}],"customer":{"type":"person"},"billing_address":{"given_name":"","family_name":"","email":"","phone":"","street_address":"6731 Variel Ave.","street_address2":"","postal_code":"91303","city":"Canoga Park","region":"CA","country":"US"},"shipping_address":{"given_name":"","family_name":"","email":"","phone":"","street_address":"6731 Variel Ave.","street_address2":"","postal_code":"91303","city":"Canoga Park","region":"CA","country":"US"},"options":null,"merchant_urls":{"authorization":"https:\/\/vrlatech.com\/wc-api\/KP_WC_AUTHORIZATION"}}},"request_url":"https:\/\/api-na.klarna.com\/payments\/v1\/sessions\/0fb61141-6467-3964-aa5b-9f57d7fee1da","response":{"body":{"error_code":"BAD_VALUE","error_messages":["Bad value: order_amount"],"correlation_id":"e4331063-a798-4fd9-b2f9-bc8922242cdb"},"code":400},"timestamp":"2023-03-25 09:29:54","stack":[{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"KP_Session->get_session()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-cart.php","line":1403,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce-avatax\/src\/class-wc-avatax-checkout-handler.php","line":154,"function":"WC_Cart->calculate_totals()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce-avatax\/src\/class-wc-avatax-checkout-handler.php","line":97,"function":"WC_AvaTax_Checkout_Handler->reset_cart_taxes()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AvaTax_Checkout_Handler->calculate_taxes()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-cart.php","line":1403,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":374,"function":"WC_Cart->calculate_totals()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::update_order_review()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":94,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::do_wc_ajax()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/template-loader.php","line":13,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-blog-header.php","line":19,"function":"require_once()"},{"file":"\/home\/annavrla\/public_html\/index.php","line":17,"function":"require()"}],"plugin_version":"3.0.5"} 03-25-2023 @ 02:29:54 - {"type":"POST","title":"Update session","arguments":{"country":"US","session_id":"0fb61141-6467-3964-aa5b-9f57d7fee1da","order_id":null,"include_address":false},"request":{"headers":{"Authorization":"Basic TjEwMDIwNTBfNzJjOGU3MDk3MzkyOlpJUGhSNzY3OHNLaEFXRmc=","Content-Type":"application\/json"},"user-agent":"WordPress\/6.1.1; https:\/\/vrlatech.com - WooCommerce: 7.5.0 - KP: 3.0.5 - PHP Version: 7.4.33 - Krokedil","method":"POST","timeout":10,"body":{"purchase_country":"US","purchase_currency":"USD","locale":"en-US","order_amount":64649,"order_tax_amount":4750,"order_lines":[{"image_url":"https:\/\/vrlatech.com\/wp-content\/uploads\/2021\/10\/DSC05709-78x78.jpg","name":"FLUORA","product_url":"https:\/\/vrlatech.com\/product\/fluora-led-houseplant\/","quantity":1,"quantity_unit":"pcs","reference":30809,"tax_rate":0,"total_amount":49999,"total_discount_amount":0,"total_tax_amount":0,"type":"physical","unit_price":49999},{"name":"Sales Tax","quantity":1,"reference":"Sales Tax","tax_rate":0,"total_amount":4750,"total_discount_amount":0,"total_tax_amount":0,"type":"sales_tax","unit_price":4750}],"customer":{"type":"person"},"billing_address":{"given_name":"","family_name":"","email":"","phone":"","street_address":"6731 Variel Ave.","street_address2":"","postal_code":"91303","city":"Canoga Park","region":"CA","country":"US"},"shipping_address":{"given_name":"","family_name":"","email":"","phone":"","street_address":"6731 Variel Ave.","street_address2":"","postal_code":"91303","city":"Canoga Park","region":"CA","country":"US"},"options":null,"merchant_urls":{"authorization":"https:\/\/vrlatech.com\/wc-api\/KP_WC_AUTHORIZATION"}}},"request_url":"https:\/\/api-na.klarna.com\/payments\/v1\/sessions\/0fb61141-6467-3964-aa5b-9f57d7fee1da","response":{"body":{"error_code":"BAD_VALUE","error_messages":["Bad value: order_amount"],"correlation_id":"5b5cfeaf-eb1b-4122-ad8a-b602ec23c876"},"code":400},"timestamp":"2023-03-25 09:29:54","stack":[{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"KP_Session->get_session()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-cart.php","line":1403,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":374,"function":"WC_Cart->calculate_totals()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::update_order_review()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":94,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::do_wc_ajax()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-includes\/template-loader.php","line":13,"function":"do_action()"},{"file":"\/home\/annavrla\/public_html\/wp-blog-header.php","line":19,"function":"require_once()"},{"file":"\/home\/annavrla\/public_html\/index.php","line":17,"function":"require()"}],"plugin_version":"3.0.5"}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bad value: order_amount’ is closed to new replies.