Advertisement
Guest User

Untitled

a guest
Dec 31st, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. [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:
  2. {
  3. "error_code" : "BAD_VALUE",
  4. "error_messages" : [ "Bad value: purchase_currency" ],
  5. "correlation_id" : "b78345bf- (truncated...)
  6. [] []
  7. [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"}} [] []
  8. [2018-12-31 10:44:59] klarnaDebugLogger.ERROR: 400 Bad Request [] []
  9. [2018-12-31 10:44:59] klarnaDebugLogger.DEBUG: Array
  10. (
  11. [REQUEST] => Array
  12. (
  13. [headers] => Array
  14. (
  15. [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)
  16. [Accept] => */*
  17. )
  18.  
  19. [body] => Array
  20. (
  21. [error_code] => BAD_VALUE
  22. [error_messages] => Array
  23. (
  24. [0] => Bad value: purchase_currency
  25. )
  26.  
  27. [correlation_id] => b78345bf-d4a3-40ff-ad65-b1286f085d42
  28. [response_object] => Array
  29. (
  30. [headers] => Array
  31. (
  32. [Content-Type] => Array
  33. (
  34. [0] => application/json
  35. )
  36.  
  37. [Date] => Array
  38. (
  39. [0] => Mon, 31 Dec 2018 10:44:59 GMT
  40. )
  41.  
  42. [Klarna-Correlation-Id] => Array
  43. (
  44. [0] => b78345bf-d4a3-40ff-ad65-b1286f085d42
  45. )
  46.  
  47. [Render-Time] => Array
  48. (
  49. [0] => 5
  50. )
  51.  
  52. [Server] => Array
  53. (
  54. [0] => openresty
  55. )
  56.  
  57. [Strict-Transport-Security] => Array
  58. (
  59. [0] => max-age=31536000; includeSubDomains
  60. )
  61.  
  62. [Content-Length] => Array
  63. (
  64. [0] => 150
  65. )
  66.  
  67. [Connection] => Array
  68. (
  69. [0] => keep-alive
  70. )
  71.  
  72. )
  73.  
  74. [body] =>
  75. )
  76.  
  77. [response_status_code] => 400
  78. [response_status_message] => Bad Request
  79. )
  80.  
  81. )
  82.  
  83. )
  84. {"klarna_id":null,"action":"/payments/v1/sessions"} []
  85. [2018-12-31 10:44:59] klarnaDebugLogger.DEBUG: Array
  86. (
  87. [RESPONSE] => Array
  88. (
  89. [is_successful] =>
  90. [response_status_code] => 400
  91. [response_status_message] => Bad Request
  92. [error_code] => BAD_VALUE
  93. [error_messages] => Array
  94. (
  95. [0] => Bad value: purchase_currency
  96. )
  97.  
  98. [correlation_id] => b78345bf-d4a3-40ff-ad65-b1286f085d42
  99. [response_object] => Array
  100. (
  101. [headers] => Array
  102. (
  103. [Content-Type] => Array
  104. (
  105. [0] => application/json
  106. )
  107.  
  108. [Date] => Array
  109. (
  110. [0] => Mon, 31 Dec 2018 10:44:59 GMT
  111. )
  112.  
  113. [Klarna-Correlation-Id] => Array
  114. (
  115. [0] => b78345bf-d4a3-40ff-ad65-b1286f085d42
  116. )
  117.  
  118. [Render-Time] => Array
  119. (
  120. [0] => 5
  121. )
  122.  
  123. [Server] => Array
  124. (
  125. [0] => openresty
  126. )
  127.  
  128. [Strict-Transport-Security] => Array
  129. (
  130. [0] => max-age=31536000; includeSubDomains
  131. )
  132.  
  133. [Content-Length] => Array
  134. (
  135. [0] => 150
  136. )
  137.  
  138. [Connection] => Array
  139. (
  140. [0] => keep-alive
  141. )
  142.  
  143. )
  144.  
  145. [body] =>
  146. )
  147.  
  148. [exception_code] => 400
  149. )
  150.  
  151. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement