VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Rune Rasmussen on April 30, 2014, 18:19:00 PM

Title: VM 2.6 Klarna Invoice Broken
Post by: Rune Rasmussen on April 30, 2014, 18:19:00 PM
There seems to be some issues with Klarna Invoice in VM 2.6.

First of all it's not possible to place a order, get this error message, even if the details surely are correct in config:
QuotevmError: Config field 'eid, secret' is not valid! #50003

Further, having debug active there is several notices listed:
QuoteNotice: Undefined index: title in ../plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php on line 1414
Notice: Undefined index: virtuemart_country_id in ../plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php on line 1426
Notice: Undefined index: virtuemart_country_id in ../plugins/vmpayment/klarna/klarna.php on line 1626
Notice: Undefined property: TablePaymentmethods::$klarna_merchantid_ in ../plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php on line 1100
Notice: Undefined property: TablePaymentmethods::$klarna_merchantid_ in ../plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php on line 1100
Notice: Undefined property: TablePaymentmethods::$klarna_merchantid_ in ../plugins/vmpayment/klarna/klarna/helpers/klarnahandler.php on line 1100

And then there is the missing Klarna logo in cart.

Any ideas?
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: alatak on April 30, 2014, 18:48:50 PM
Hello
QuoteFirst of all it's not possible to place a order, get this error message, even if the details surely are correct in config:
Quote
vmError: Config field 'eid, secret' is not valid! #50003
This is the most important. Are you sure you have set the correct eid and secret?

Because if this is not correct, then it cannot work.

Title: Re: VM 2.6 Klarna Invoice Broken
Post by: Rune Rasmussen on April 30, 2014, 18:58:37 PM
Quote from: rued on April 30, 2014, 18:19:00 PM
First of all it's not possible to place a order, get this error message, even if the details surely are correct in config:
...

Yes :)

But what does #50003 mean? I don't find any ref for it.
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: alatak on April 30, 2014, 19:27:15 PM
Hello

Quote#50003
It is the error code returned by klarna. BUt i could not find what it means exactly http://developers.klarna.com/en/troubleshooting/xmlrpc-errors
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: Rune Rasmussen on April 30, 2014, 19:46:49 PM
Seems like it's from the modules api, in Exeptions.php
    public function __construct($field)
    {
        parent::__construct("Config field '{$field}' is not valid!", 50003);

    }
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: Rune Rasmussen on April 30, 2014, 21:30:04 PM
When using BETA server and my test account on a test site, at a different server I got error #9120

Wondering if it can be related to that country_id notice then?
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: alatak on May 02, 2014, 11:57:31 AM
Hello
i think so, since that error is invalid_country http://developers.klarna.com/en/troubleshooting/xmlrpc-errors

What are your settings in the Klarna configuration, and in your shop configuration?
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: Rune Rasmussen on May 02, 2014, 12:41:10 PM
Norway.

Do you have a working installation of 2.6 with Klarna Invoice and Checkout, and have tested it with other than Swedish accounts?
Title: Re: VM 2.6 Klarna Invoice Broken
Post by: alatak on May 02, 2014, 12:55:02 PM
Hello
Yes we (me and the Klarna team) have tested all the possible configurations.
To check your issue, please tell me what is your shop country, and which countries are enabled in the payment config.
I will try your configuration on my test website.