Page 1 of 1

[v3.0.3.1] - klarna checkout extension payment

Posted: Sun Mar 03, 2019 5:23 am
by straightlight
The following steps are for Opencart v3.0.3.1 release. If your site is running in production, put your site under maintenance. Issue has already been fixed on Github files.

1 - Take a screenshot of your admin klarna checkout payment module configurations.
2 - Uninstall the klarna checkout payment module.
3 - In admin/controller/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
In admin/model/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
Then, in admin/view/template/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

klarna_
replace all with:

Code: Select all

payment_klarna_
Then, in catalog/controller/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
Then, in catalog/model/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
3.1 - Then, take a screenshot of your klarna checkout payment module
3.2 - Uninstall klarna checkout payment module

Then, in catalog/controller/extension/module/klarna_checkout_module.php file,

find:

Code: Select all

if (!$this->config->get('module_klarna_checkout_status') || !$this->config->get('klarna_checkout_status')) {
replace with:

Code: Select all

if (!$this->config->get('module_klarna_checkout_status') || !$this->config->get('payment_klarna_checkout_status')) {
Then, in the same file, find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
4 - Reinstall the klarna checkout payment module.
5 - Reconfigure the klarna checkout payment module.
6 - Test a transaction during checkout.
7 - When successful, disable the site maintenance (if running in production).

This should overall resolve the status issues along with other variables.

Re: [v3.0.3.1] - klarna checkout extension payment

Posted: Wed Mar 27, 2019 11:14 pm
by HAO
3 - In admin/controller/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
In this situation, Whether this code also needs to be changed?

find all instances of:

Code: Select all

request->post['klarna_
replace all with:

Code: Select all

request->post['payment_klarna_
In admin/model/extension/payment/klarna_checkout.php file, and other php files.

Search and replace all:

Code: Select all

request->post['klarna_
replace all with:

Code: Select all

request->post['payment_klarna_
etc.

This topic also has the same logic problem?

Re: [v3.0.3.1] - klarna checkout extension payment

Posted: Fri Feb 21, 2020 2:45 am
by straightlight
This issue also seem to persist on OC v3.0.3.2.

Re: [v3.0.3.1] - klarna checkout extension payment

Posted: Wed Sep 16, 2020 9:12 pm
by Besti
How to make Klarna work with Opencart 3.0.3.6?
Is there an extension or smth? Klarna says to use its API.. I use PayPal checkout, bank transfer, but i would like to use invoice payments and financing with Klarna.. Can i use any of the existing modules without/with some modifications? Or where to look for a solution?

Re: [v3.0.3.1] - klarna checkout extension payment

Posted: Sun Feb 27, 2022 4:53 pm
by tapspeed
Hello, the only solution currently support opencart 3 with klarna checkout API 1 are :
can use klarna checkout for opencart 3 :
https://www.opencart.com/index.php?rout ... n_id=43318
for full info and docs check :
https://byteblue.com/blog/klarna-payments-opencart-3/