Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Code hangs on payment execution. #101

Closed
Juriskondrats opened this issue Apr 6, 2020 · 1 comment
Closed

Code hangs on payment execution. #101

Juriskondrats opened this issue Apr 6, 2020 · 1 comment

Comments

@Juriskondrats
Copy link

Hi!
Tried Klarna checkout web app example. The problem is that when this line is executed ->

var createdOrder = client.Checkout.CreateOrder(order).Result;

it hangs on. It is waiting for response unlimited amount of time but never receives it. Checked test account logs this request is with 201 status. the response body message shows an error.

{
"order_id": "34368eb5-7346-659d-b519-6951c0a02cb6",
"status": "checkout_incomplete",
"purchase_country": "gb",
"purchase_currency": "GBP",
"locale": "en-GB",
"billing_address": {
"country": "gb"
},
"customer": {},
"shipping_address": {
"country": "gb"
},
"order_amount": 10000,
"order_tax_amount": 2000,
"order_lines": [
{
"type": "physical",
"name": "Foo",
"quantity": 1,
"unit_price": 10000,
"tax_rate": 2500,
"total_amount": 10000,
"total_discount_amount": 0,
"total_tax_amount": 2000
}
],
"merchant_urls": {
"terms": "https://www.example.com/terms.html",
"checkout": "https://www.example.com/checkout.html",
"confirmation": "https://www.example.com/confirmation.html",
"push": "https://www.example.com/push.html"
},
"html_snippet": "<div id="klarna-checkout-container" style="overflow-x: hidden;">\n <div id="klarna-unsupported-page">\n <style type="text/css">\n @-webkit-keyframes klarnaFadeIn{from{opacity:0}to{opacity:1}}@-moz-keyframes klarnaFadeIn{from{opacity:0}to{opacity:1}}@Keyframes klarnaFadeIn{from{opacity:0}to{opacity:1}}#klarna-unsupported-page{opacity:0;opacity:1\9;-webkit-animation:klarnaFadeIn ease-in 1;-moz-animation:klarnaFadeIn ease-in 1;animation:klarnaFadeIn ease-in 1;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-duration:.1s;-moz-animation-duration:.1s;animation-duration:.1s;-webkit-animation-delay:5s;-moz-animation-delay:5s;animation-delay:5s;text-align:center;padding-top:64px}#klarna-unsupported-page .heading{font-family:Source Sans Pro,Helvetica,Arial,sans-serif;line-height:48px;font-weight:200;color:#303030;font-size:42px;margin:24px 0}#klarna-unsupported-page .subheading{font-family:Source Sans Pro,Helvetica,Arial,sans-serif;line-height:28px;font-weight:400;color:rgba(0,0,0,.7);font-size:19px;max-width:560px;margin:10px auto}#klarna-unsupported-page .subheading a{text-decoration:none;background-color:transparent;border:0;color:rgba(0,0,0,.7);font-weight:600}\n </style>\n <h1 class="heading">Oops.\n <p class="subheading">It looks like an important part of the checkout experience failed to load and we are unable to offer you a way to pay right now.

\n <p class="subheading">Please refresh the page to try again. If this isn't the first time you've seen this message then there may be a more permanent error and you should contact customer service at Klarna.com.

\n \n <script type="text/javascript">\n /* */\n </script>\n \nPlease <a href="http://enable-javascript.com\">enable JavaScript.\n \n",
"started_at": "2020-04-06T06:31:54Z",
"last_modified_at": "2020-04-06T06:31:54Z",
"options": {
"allow_separate_shipping_address": false,
"date_of_birth_mandatory": false,
"require_validate_callback_success": false
},
"external_payment_methods": [],
"external_checkouts": [],
"recurring": false
}

What can be a problem here?
Thanks in advance!

@Juriskondrats
Copy link
Author

Ok sorry, seems like I found an asnwer in this issue -> #97 Closing ticket.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant