News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problem with error text/information (error code nr. is showing) when use Klarna.

Started by terjef, November 05, 2013, 13:32:34 PM

Previous topic - Next topic

terjef


Hi.
Sorry about the doublepost.....

I have set up i webshop with Paypal and Klarna payment plugin.

When i fill inn the Klarna fields in cart for shopping, and everything is filled as it should be, the ordere goes true, and everything is OK.
BUT if you use a wrong name with the social security nr. you wil see an error in top. My problem is that the error nr. code is only what is showing, and the error text/information is missing.


I dont have this issue on my testserver, where both the code nr. and text/info is showing.

Klarna wont set my site live before this is fixed.

Anyone who can help me out with this one???

The domain is www.festhus.no

Regards

Terje Flatlandsmo

alatak

Hello
Yes, thank you. I found and i have fixed.
But the message displayed will not be very informative.
The fix is:
file
plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php
replace around line 574

this
$result['status_text'] = htmlentities ($e->getMessage ()) . "  (#" . $e->getCode () . ")";


by
$result['status_text'] = mb_convert_encoding ($e->getMessage (), 'UTF-8', 'ISO-8859-1'). "  (#" . $e->getCode () . ")";

terjef

Thanx a lot.

That did it. You deserve a hug ;-)

Now i just wonder how to correct the blue VM error: vmError: Ingen Klarna-data funnet for denne ordre-id: 47 (In english: No Klarna data found for this order id: 47)

The order id is counting 1 up every time i get an error msg, and is only showing at the same time as the error mentioned in the last post. Not when the user fills inn the right info.

Can this have anything to do with restoring from av backup, and futher testing on the same version on both isp and testserver? A mismatch in order counting?

It showed up after i started testing against the same Klarna account with with 2 versions of my shop.

The Klarna account is in testmode.

Best regards
Terje

[attachment cleanup by admin]

alatak

Hello
I have not been able to reproduce your problem.
I sent the new version to Rune, and he will give it to you.
Can you test and see if you can reproduce the problem?


alatak


terjef

Hi.

I have a quick parent meeting in school with my daughter in 4th grade in 20 min.

Ill need to have a raincheck on that ;-)


alatak

hello
QuoteI have not been able to reproduce your problem.
actually klarna test environment was restarting, so that was the reason