-
Notifications
You must be signed in to change notification settings - Fork 5
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 is not working with Custom line totals #8
Comments
I have the same issue, but while using a coupon code. |
I was able to fix the issue, it was matter of going through the logic used by Klarna, you have to use |
Hi - don't suppose you'd care to expand on this. I'm having the same issue but didn't quite follow your solution. Thanks |
create klarna.xml in etc folder, with code as below:
Then create a Model Class mentioned above named CustomFee.php
|
We have the same issue. Did you find a fix for it? |
|
Not for me, sorry. I gave up and had to remove it as a payment option on
our sites
…On Fri, Nov 18, 2022 at 11:09 AM opaque01 ***@***.***> wrote:
I have the same issue with configurable products.
Magento 2.4.3 p2
Any fixes?
—
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIXUHU2Z4LTCZUFPC4CB3TWI5PVHANCNFSM4HFGWOFQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It is not a problem with configurable products! |
For any custom fee, you have to follow the steps I mentioned above, that's how it worked for me. |
Hi everyone, I have the same error, even though I'm not using a custom total line. My error occurs when I put quite some effort and time into debugging this issue. The following fix would solve that matter for me (and hopefully also for everyone). Patch for
For previous versions of Klarna (e.g. 8.3.6 with core 6.2.4) a similar fix would have to be made to I hope this fixes also the custom total line issue... but at least it solves a core bug in Klarna |
Hi everyone, Also come across this issue. Might be worth searching isSeparateTaxLine in your entire code base. In our case, it only needs to be true when using the NA Klarna API Endpoint which the Klarna module handles anyway. Also if you are using a free gift module and sending zero priced products to Klarna instead of products with a 100% discount, you will probably face issues with unit_price.
If the getBasePrice is zero it resorts to getBaseOriginalPrice (which contains the full price) but the order line total in the request will still be zero, so Klevu rejects it and the payment method wont show on checkout. Hope this helps someone. |
Hi,
we are using Klarna on site where it is failing to work with module that plays with order line totals, we recently faced an issue where a module adds a certain amount like extra charges and also subtracts a certain amount (based on some business logic) . The module works perfectly with Paypal, amazon and couple of other payment methods used on site.
Customers should see the checkout page and place order with Klarna payment method, like other payment methods do, with updated Order Grand total.
Customers see a blank Checkout page.
whereas in logs it throws an error as following:
Order line totals do not total order_amount - xxxx != xxx
as soon i disable the klarna payment method, site is back on track.
There should be a way like Paypal, to allow system to inject custom line totals, with Total Label, Total code and (+/-) amount Or atleast it should work with updated totals.
thanks,
The text was updated successfully, but these errors were encountered: