Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2018-12-31 10:44:59] klarnaDebugLogger.ERROR: Bad Response: Client error: `POST https://api.playground.klarna.com/payments/v1/sessions` resulted in a `400 Bad Request` response:
- {
- "error_code" : "BAD_VALUE",
- "error_messages" : [ "Bad value: purchase_currency" ],
- "correlation_id" : "b78345bf- (truncated...)
- [] []
- [2018-12-31 10:44:59] klarnaDebugLogger.ERROR: {"purchase_country":"US","purchase_currency":"USD","locale":"en-US","order_amount":100500,"order_tax_amount":0,"order_lines":[{"type":"physical","reference":"Syringe","name":"Syringe","quantity":1,"product_url":"http:\/\/127.0.0.1\/Mage225\/syringe.html","image_url":"http:\/\/127.0.0.1\/Mage225\/pub\/media\/catalog\/product\/b\/d\/bd_emerald_syringe_307728_press.jpg","tax_rate":0,"total_tax_amount":0,"unit_price":100000,"total_amount":100000},{"type":"shipping_fee","reference":"flatrate_flatrate","name":"Shipping & Handling","quantity":1,"unit_price":500,"tax_rate":0,"total_amount":500,"total_tax_amount":0}],"merchant_urls":{"confirmation":"https:\/\/127.0.0.1\/Mage225\/checkout\/onepage\/success","notification":"https:\/\/127.0.0.1\/Mage225\/klarna\/api\/notification"},"options":{"color_details":"#0072CC","color_button":"#0072CC","color_button_text":"#0072CC","color_checkbox":"#0072CC","color_checkbox_checkmark":"#0072CC","color_header":"#0072CC","color_link":"#0072CC","color_border":"#0072CC","color_border_selected":"#0072CC","color_text":"#0072CC","color_text_secondary":"#0072CC"}} [] []
- [2018-12-31 10:44:59] klarnaDebugLogger.ERROR: 400 Bad Request [] []
- [2018-12-31 10:44:59] klarnaDebugLogger.DEBUG: Array
- (
- [REQUEST] => Array
- (
- [headers] => Array
- (
- [User-Agent] => Magento2_KP/5.2.3;Core/4.2.3;OM/4.1.3;Guzzle/6.3.3;PHP/7.0.27 (Magento Community/2.2.5 default mode)
- [Accept] => */*
- )
- [body] => Array
- (
- [error_code] => BAD_VALUE
- [error_messages] => Array
- (
- [0] => Bad value: purchase_currency
- )
- [correlation_id] => b78345bf-d4a3-40ff-ad65-b1286f085d42
- [response_object] => Array
- (
- [headers] => Array
- (
- [Content-Type] => Array
- (
- [0] => application/json
- )
- [Date] => Array
- (
- [0] => Mon, 31 Dec 2018 10:44:59 GMT
- )
- [Klarna-Correlation-Id] => Array
- (
- [0] => b78345bf-d4a3-40ff-ad65-b1286f085d42
- )
- [Render-Time] => Array
- (
- [0] => 5
- )
- [Server] => Array
- (
- [0] => openresty
- )
- [Strict-Transport-Security] => Array
- (
- [0] => max-age=31536000; includeSubDomains
- )
- [Content-Length] => Array
- (
- [0] => 150
- )
- [Connection] => Array
- (
- [0] => keep-alive
- )
- )
- [body] =>
- )
- [response_status_code] => 400
- [response_status_message] => Bad Request
- )
- )
- )
- {"klarna_id":null,"action":"/payments/v1/sessions"} []
- [2018-12-31 10:44:59] klarnaDebugLogger.DEBUG: Array
- (
- [RESPONSE] => Array
- (
- [is_successful] =>
- [response_status_code] => 400
- [response_status_message] => Bad Request
- [error_code] => BAD_VALUE
- [error_messages] => Array
- (
- [0] => Bad value: purchase_currency
- )
- [correlation_id] => b78345bf-d4a3-40ff-ad65-b1286f085d42
- [response_object] => Array
- (
- [headers] => Array
- (
- [Content-Type] => Array
- (
- [0] => application/json
- )
- [Date] => Array
- (
- [0] => Mon, 31 Dec 2018 10:44:59 GMT
- )
- [Klarna-Correlation-Id] => Array
- (
- [0] => b78345bf-d4a3-40ff-ad65-b1286f085d42
- )
- [Render-Time] => Array
- (
- [0] => 5
- )
- [Server] => Array
- (
- [0] => openresty
- )
- [Strict-Transport-Security] => Array
- (
- [0] => max-age=31536000; includeSubDomains
- )
- [Content-Length] => Array
- (
- [0] => 150
- )
- [Connection] => Array
- (
- [0] => keep-alive
- )
- )
- [body] =>
- )
- [exception_code] => 400
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement