Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencart 3+ #15

Open
f1r3w411 opened this issue Mar 15, 2018 · 5 comments
Open

Opencart 3+ #15

f1r3w411 opened this issue Mar 15, 2018 · 5 comments

Comments

@f1r3w411
Copy link

Hi.
Just wondering if you have plans to update module for Opencart 3+?

@Khaleel
Copy link

Khaleel commented Jan 10, 2020

I have downloaded this module and I think I have managed to get it to work for 3.0.2

1 - Open the file:

catalog/controller/extension/payment/twocheckout_api.php

Find the line

$this->load->library('twocheckout');

And replace with

$this->load->library('twocheckout');

@f1r3w411 f1r3w411 reopened this Jan 11, 2020
@Khaleel
Copy link

Khaleel commented Jan 14, 2020

Why was this so arrogantly closed? Are you another Daniel ker? Arrogant?

I am getting another error now in OpenCart 3.0.2:

<br />
<b>Fatal error</b>:  Uncaught Error: Class 'Twocheckout' not found in /home/public_html/catalog/controller/extension/payment/twocheckout_api.php:78
Stack trace:
#0 /home/private_html/storage/modification/system/engine/action.php(79): ControllerExtensionPaymentTwoCheckoutApi-&gt;send()
#1 /home/public_html/catalog/controller/startup/router.php(25): Action-&gt;execute(Object(Registry))
#2 /home/private_html/storage/modification/system/engine/action.php(79): ControllerStartupRouter-&gt;index()
#3 /home/public_html/system/engine/router.php(67): Action-&gt;execute(Object(Registry))
#4 /home/public_html/system/engine/router.php(56): Router-&gt;execute(Object(Action))
#5 /home/public_html/system/framework.php(168): Router-&gt;dispatch(Object(Action), Object(Action))
#6 /home/353951.cloudwaysapps.com/ekhugea in <b>/home/public_html/catalog/controller/extension/payment/twocheckout_api.php</b> on line <b>78</b><br />

That line 78 is:

$charge = Twocheckout::auth(
$this->config->get('payment_twocheckout_api_account'),
$this->config->get('payment_twocheckout_api_private_key'),
$sandbox,
$params
);

@f1r3w411 f1r3w411 reopened this Jan 14, 2020
@f1r3w411
Copy link
Author

So sorry about it. I've closed this issue accidentally.
Unfortunately, I've stopped using Opencart and moved to another platform.
Nevertheless, I appreciate your help and this info could be useful for the other users.

@Khaleel
Copy link

Khaleel commented Jan 15, 2020

Thanks. I think if you can provide a solution for this:

$this->load->library('twocheckout');
I am trying this at the moment:

include(DIR_SYSTEM . 'library/twocheckout/TwocheckoutApi.php');
But still get an error.

@f1r3w411
Copy link
Author

I'm not a developer. Just used this module some time ago. Currently, I'm not using it and moved to another platform.
Please contact a developer and ask him to apply a solution: @craigchristenson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants