Post by straightlight » Sun Mar 03, 2019 5:23 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by HAO » Wed Mar 27, 2019 11:14 pm

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?

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by straightlight » Fri Feb 21, 2020 2:45 am

This issue also seem to persist on OC v3.0.3.2.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Besti » Wed Sep 16, 2020 9:12 pm

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?

New member

Posts

Joined
Sun May 24, 2020 4:27 pm

Post by tapspeed » Sun Feb 27, 2022 4:53 pm

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/

Opencart Support | Extension Development | Opencart 3 Klarna checkout


New member

Posts

Joined
Wed Feb 02, 2022 1:09 am
Who is online

Users browsing this forum: No registered users and 84 guests