Apparently this module is using an incorrect Klarna's replacement token - {checkout.order_id} vs. {checkout.order.id} which is correct as documented https://developers.klarna.com/documentation/klarna-checkout/integration-.... In addition, urlencode curly braces are replaced with URL escaped versions (%7B an %7B) causing Klarna to fail raplacing those tokens. I've been able to reproduce it by adding custom address_update callback based on the same url pattern as currently used in getNotifyUrl() which caused 500 error on Klarna's side. Their technical support told by about those 2 issues.

Comments

zaporylie created an issue. See original summary.

  • jsacksick committed 0219fdb on 8.x-2.x
    Issue #3131239 by jsacksick,  zaporylie: Invalid replacement token for...
jsacksick’s picture

I replaced {checkout.order.id} but if the curly braces are causing the problem, that fix isn't going be sufficient.

@zaporylie: Not closing this for now, please let me know if the issue persists.

  • jsacksick committed 16d4b1c on 8.x-2.x
    Issue #3131239 follow-up: Decode the klarna order ID appended to the...
jsacksick’s picture

Status: Active » Fixed

Actually, I decided to go ahead and decode the notify url via urldecode(), so marking this as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.