Using Bellini's Interac module, which used to work fine, with the TB compatible version and TB 1.1.x - latest version. I did check the configuration table in the DB for INTERAC_OS_PENDING_PAYMENT and it had indeed the wrong order status, which I fixed, but unlike my other module, the customer still gets a 500 error and I get this in the logs:
Decoded exception
Too few arguments to function iemt::execPayment(), 0 passed in /home/zbookstore/public_html/modules/iemt/controllers/front/validation.php on line 51 and exactly 1 expected
in filemodules/iemt/iemt.phpat line237
Source file: modules/iemt/iemt.php
218: $this->context->controller->addJquery();
219: $this->context->controller->addJQueryPlugin('fancybox');
220: }
221:222: public function hookPayment($params)
223: {
224: if (!$this->active)
225: return;
226:227: $validation_url = $this->context->link->getModuleLink($this->name, 'validation', array(), true);
228: $this->context->smarty->assign(array(
229: 'iemt_validation_url' => $validation_url,
230: 'mess_error' => $this->l('Please provide a challenge answer'),
231: 'this_path_iemt' => $this->getPathUri(),
232: ));
233:234: return $this->display(__FILE__, 'views/templates/front/payment.tpl');
235: }
236:237: public function execPayment($cart_old)238: {
239: if (!$this->active)
240: return;
241:242: $customer = $this->context->customer;
243: $currency = $this->context->currency;
244: $cart = $this->context->cart;
245: $total = (float)$cart->getOrderTotal(true, Cart::BOTH);
246:247: //todo: validate $challengeAnswer, redirect to payment page with error
32: {
33: $cart = $this->context->cart;
34: if ($cart->id_customer == 0 || $cart->id_address_delivery == 0 || $cart->id_address_invoice == 0 || !$this->module->active)
35: Tools::redirect('index.php?controller=order&step=1');
36:37: // Check that this payment option is still available in case the customer changed his address just before the end of the checkout process
38: $authorized = false;
39: foreach (Module::getPaymentModules() as $module)
40: {
41: if ($module['name'] == 'iemt')
42: {
43: $authorized = true;
44: break;
45: }
46: }
47:48: if (!$authorized)
49: die($this->module->l('This payment method is not available.', 'validation'));
50:51: $this->module->execPayment();52: }
53:}
14: * If you did not receive a copy of the license and are unable to
15: * obtain it through the world-wide-web, please send an email
16: * to [email protected] so we can send you a copy immediately.
17: *
18: * DISCLAIMER
19: *
20: * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
21: * versions in the future. If you wish to customize PrestaShop for your
22: * needs please refer to https://www.thirtybees.com for more information.
23: *
24: * @author thirty bees <[email protected]>
25: * @author PrestaShop SA <[email protected]>
26: * @copyright 2017-2018 thirty bees
27: * @copyright 2007-2016 PrestaShop SA
28: * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29: * PrestaShop is an internationally registered trademark & property of PrestaShop SA
30: */
31:32:require(dirname(__FILE__).'/config/config.inc.php');
33:Dispatcher::getInstance()->dispatch();
Question
movieseals
Using Bellini's Interac module, which used to work fine, with the TB compatible version and TB 1.1.x - latest version. I did check the configuration table in the DB for INTERAC_OS_PENDING_PAYMENT and it had indeed the wrong order status, which I fixed, but unlike my other module, the customer still gets a 500 error and I get this in the logs:
Too few arguments to function iemt::execPayment(), 0 passed in /home/zbookstore/public_html/modules/iemt/controllers/front/validation.php on line 51 and exactly 1 expected
Source file: modules/iemt/iemt.php
Stack trace
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now