-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Klarna Issue #38675
Comments
Hi @dvakerlis. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
Reproduced on 2.4.5 |
@magento give me 2.4-develop instance |
Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Dash, here is your Magento Instance: https://af74b0228fb299619bbf7ba85720f9b9.instances-prod.magento-community.engineering |
@magento give me 2.4-develop instance |
Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Dash, here is your Magento Instance: https://af74b0228fb299619bbf7ba85720f9b9.instances-prod.magento-community.engineering |
Issue: It then moves out of the try/catch and goes to set is_active again. However, the JS vendor/klarna/module-payments/view/frontend/web/js/view/payments/kp.js check to decide if it should call checkout/klarna/authorizationTokenUpdate and then call context.placeOrder(); checks - if (result['is_active'] === '1') { Therefore, the stack trace below will happen.
Apply this patch :) index 34a6f20..c6349bb 100644
--- a/Controller/Klarna/QuoteStatus.php
+++ b/Controller/Klarna/QuoteStatus.php
@@ -114,7 +114,7 @@ class QuoteStatus extends CsrfAbstract implements HttpPostActionInterface
}
$magentoQuote = $this->magentoQuoteRepository->get($klarnaQuote->getQuoteId());
- $result['is_active'] = $magentoQuote->getIsActive() && $klarnaQuote->isAuthCallbackFailedOrNotStarted();
+ $result['is_active'] = $magentoQuote->getIsActive() && $klarnaQuote->isAuthCallbackFailedOrNotStarted() ? '1' : '0';
return $this->result->getJsonResult(200, $result);
} This caused me great pain. |
Hi @dvakerlis Thanks for reporting and collaboration. The team is working on this issue. We are keeping the issue in On Hold status for now. Thanks. |
@engcom-Dash why is this "issue in On Hold status for now" if "the team is working on this issue"? |
Hi @fredden We are getting issues while configuring Klarna. we are waiting to fix the related configuration issue. We will work on the ticket once we fix the configuration issue with Klarna. Thanks. |
Hi @engcom-Delta. Thank you for working on this issue.
|
FYI: this issue was fixed in the m2-klarna extension per PPP-1266 in v2.2.2: https://commercemarketplace.adobe.com/klarna-m2-klarna.html#product.info.details.release_notes |
Hi @dvakerlis , Thanks for your reporting and collaboration. Thanks. |
Preconditions and environment
Version 2.4.5
Steps to reproduce
After comple the payment in klarna website when its returns to our site we get error 500 in this url /checkout/klarna/updateSession/
Expected result
Order placed successfully
Actual result
No redirect to the success page. It's returns to checkout page and the order not placed
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: