monero-integrations / monerocart Goto Github PK
View Code? Open in Web Editor NEWMonero Payment Gateway for OpenCart 2.3.x
Monero Payment Gateway for OpenCart 2.3.x
Using the master branch for opencart version 3.0.2.0 after going to extensions > payments and selecting the edit button the following error is displayed.
Notice: Undefined index: token in /public_html/admin/controller/extension/payment/monero.php on line 51Notice: Undefined index: token in /public_html/admin/controller/extension/payment/monero.php on line 55Notice: Undefined index: token in /public_html/admin/controller/extension/payment/monero.php on line 59Notice: Undefined index: token in /public_html/admin/controller/extension/payment/monero.php on line 61Notice: Undefined index: token in /public_html/admin/controller/extension/payment/monero.php on line 62
Opencart 3 doesnt use the index token as in previous version and instead is replaced with user_token. The following would need to be changed in
admin/controller/extension/payment/monero.php
Line 51
'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], true)
change to
'href' => $this->url->link('common/home', 'user_token=' . $this->session->data['user_token'], true)
Line 55
'href' => $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=payment', true)
change to
'href' => $this->url->link('extension/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true)
Line 59
'href' => $this->url->link('extension/payment/monero', 'token=' . $this->session->data['token'], true)
change to
'href' => $this->url->link('extension/payment/monero', 'user_token=' . $this->session->data['user_token'], true)
Line 61
$data['action'] = $this->url->link('extension/payment/monero', 'token=' . $this->session->data['token'], true);
change to
$data['action'] = $this->url->link('extension/payment/monero', 'user_token=' . $this->session->data['user_token'], true);
Line 62
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'], true);
change to
$data['cancel'] = $this->url->link('extension/extension', 'user_token=' . $this->session->data['user_token'], true);
This will resolve the undefined index error in Opencart 3.0.2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.