When I install the module a new fresh shop, I get the following error on the module configuration page in the BO:
Parse error: syntax error, unexpected '(int)' (int) (T_INT_CAST) in /home/modules/www/public_html/dotpay/modules/dotpay/dotpay.php on line 262
[PrestaShop] Fatal error in module file :/home/modules/www/public_html/dotpay/modules/dotpay/dotpay.php:
syntax error, unexpected '(int)' (int) (T_INT_CAST)
You should store the result of Configuration::get('DP_ID') before testing it.
In example:
$dpid = (int)Configuration::get('DP_ID');
if (empty($dpid)) return;
[...]
Wrong URLC:
Sometimes the URL is not properly built. On my shop I get the following one:
http://.com/index.php?fc=module&module=dotpay&controller=callback&id_lang=1?ajax=1
We have a question mark two times in the url.
Notice shown during the payment process:
When I select DotPay as a payment provider, I get the following notice:
Notice: Undefined variable: return in /home/modules/www/public_html/dotpay/modules/dotpay/controllers/front/payment.php on line 90
PHP compatibility:
The line 70 in the file /controllers/front/payment.php won't be compatible with PHP 5.2:
When I install the module a new fresh shop, I get the following error on the module configuration page in the BO:
You should store the result of
Configuration::get('DP_ID')
before testing it. In example:Sometimes the URL is not properly built. On my shop I get the following one: http://.com/index.php?fc=module&module=dotpay&controller=callback&id_lang=1?ajax=1
We have a question mark two times in the url.
When I select DotPay as a payment provider, I get the following notice:
Notice: Undefined variable: return in /home/modules/www/public_html/dotpay/modules/dotpay/controllers/front/payment.php on line 90
You should store the value of
Currency::getCurrency($cart->id_currency)
first, and then get the property["iso_code"]
.