Post by Solan » Sat Dec 03, 2011 4:42 am

Hi in the Swedish Forum we are tearing our hair out with the Extension Klarna payment:
http://www.opencart.com/index.php?route ... order=DESC

Klarnas webpage:
http://integration.klarna.com/en/modules/opencart

we been in contact with Klarna but they cant find out whats wrong.

And nobody seem to find any solution to our problem.

Many of us have tried several things but none works..

First problem

At checkout:
After adding Klarna´s Test persons Social security no and clicking on continue button, the adress shows up BUT hangs in that step and dont take me to the "your order has been processed" side.

An order confirmation email is recived and i can see the order in admin.

this is what i see..
Image

Second problem:
Im on IE so i tried Firefox and then it works BUT after pressing confirm order i dont get to the "order Sucess side" instead i jump directly to the index site, not knowing if my purchase went trough. (To know that i have to go to admin to see that an order is made).
Errorlog says:

Code: Select all

PHP Unknown: is_a(): Deprecated. Please use the instanceof operator in /home/public_html/my.domain/system/library/klarna/api/transport/xmlrpc-3.0.0.beta/lib/xmlrpc.inc on line 2194
Klarna told us to try edit the php.ini file on line 514 to:

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
or to upgrade our webhotel to php 5.3
We tried that but it doesnt solve our problems in IE and Firefox

Problem 3:
Klarna module overrides the comments that a customer writes, and fills it with the ocr/invoice number. So the comment to the order that the customer writes don't shows.
Solved in latest module 2.0.
release notes:
Over-written comments
The issue where the customers' order comments would be overwritten by the Klarna module has been fixed. The customers' order comments are now left untouched and the module adds two more comments to the order; one with the Klarna order number (visible to the customer) and one saying whether the order was approved by Klarna or not (invisible to the customer).

KNOWN ISSUES
Error messages break checkout
There is a known issue where an error message will prevent a successful checkout. The error message is never displayed but nevertheless causes the checkout process to fail. This failure manifests itself either by an ever-spinning loading indicator or by a sudden redirect to the e-store's front page. One possible solution is to update the server's PHP version to 5.3.0 or later, but you can also disable the OpenCart error messages: In the OpenCart back-end, select "Settings" from the "System" menu and choose to edit the applicable store. Then, select the "Server" tab and change the "Display Errors" setting to "No". This will prevent PHP errors from showing and possibly disrupting the checkout process.

Another known issue concerns the use of a function called fwrite in system/library/klarna/api/Klarna.php. This error manifests itself in the same way as the previous error in that it breaks the checkout. If you see an error related to this problem in your error logs, please contact a Klarna support agent for instructions on how to solve the problem.
Problem 4:
The new module version 2.0 helped with firefox but...
IE9 hangs by a registered user, but the order is registered in admin and Klarna.
IE9 hangs at GUESTcheckout and no order is registered. When I try to make an order again with a registered user in IE9 the oder hangs at last step (orderconfirmation button) but the order is registered in Admin and Klarna
Neither firefox 8.0 or IE9 works at GUESTcheckout ... as it is now it only works with Firefox AS a registered customer.

I now turn my hopes to you guys... can you figure out whats going on?

Ive tried to install a clean opencart 1.5.1.3 on a whole new server with php 5.3 and having Klarna as the only module but STILL the same problem!!!!

Please... opencart coder gurus, have anyone got this working yet?
Last edited by Solan on Tue Dec 06, 2011 10:53 pm, edited 1 time in total.

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by Solan » Tue Dec 06, 2011 10:52 pm

Update!

We finally got i to with Klarna by commenting out this line:

Code: Select all

console.log(xml);
in catalog/view/theme/default/template/payment/klarna.tpl

:D

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by ShopOholic » Sat Jan 07, 2012 11:07 pm

I have the same problem, but can't find the line with console.log(xml); in catalog/view/theme/default/template/payment/klarna.tpl

Can you give me the full code for that file?

New member

Posts

Joined
Sat Jan 07, 2012 9:06 pm

Post by Solan » Sun Jan 08, 2012 5:46 am

This is probibly cus you already have the latest version since the bug was found.

Be sure to turn error of.. then it will work..

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by ShopOholic » Sun Jan 08, 2012 5:50 am

I'll try that. Thanx for helping so far. :)

New member

Posts

Joined
Sat Jan 07, 2012 9:06 pm

Post by ShopOholic » Sun Jan 08, 2012 6:37 am

Solan wrote:Be sure to turn error of.. then it will work..
This is what i've been missing out. Now it works. Thanks again.

New member

Posts

Joined
Sat Jan 07, 2012 9:06 pm

Post by ShopOholic » Mon Jan 09, 2012 5:25 am

New problem with Klarna showed up.

When i try to buy a Voucher and choose Klarna as pay method, i get this error:

Error in Klarna::setCountry: Country must be an integer! ()

Anyone else got this problem, and maybe a solution?

New member

Posts

Joined
Sat Jan 07, 2012 9:06 pm

Post by thbor83 » Tue Feb 21, 2012 7:02 pm

ShopOholic wrote:New problem with Klarna showed up.

When i try to buy a Voucher and choose Klarna as pay method, i get this error:

Error in Klarna::setCountry: Country must be an integer! ()

Anyone else got this problem, and maybe a solution?
Did anyone figure out this error? I also have this error now on my store.

Newbie

Posts

Joined
Fri Nov 04, 2011 4:00 pm

Post by Solan » Wed Feb 22, 2012 1:37 am

Havent tried that one yet..

but have a look at their integration site and see if you get something out of it


http://integration.klarna.com/en/api/mo ... chpclasses

Code: Select all

Code for the country where your sales will be in: 

Sweden: KRED_ISO3166_SE (value: 209) 
Finland: KRED_ISO3166_FI (value: 73) 
Denmark: KRED_ISO3166_DK (value: 59) 
Norway: KRED_ISO3166_NO (value: 164) 
Germany: KRED_ISO3166_DE (value: 81) 
Netherlands: KRED_ISO3166_NL (value: 154) 

Please note! 
Currency, country and language must be the same as where the customer is registered in. E.g. Swedish customer, SEK, Sweden and Swedish.

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm
Who is online

Users browsing this forum: No registered users and 6 guests