I am adding a new payment method for skrill.
I am not the author so cannot help with errors etc
This thread is a place where errors can be discussed and hopefully correct for the future.
All credit goes to webchills
I am adding a new payment method for skrill.
I am not the author so cannot help with errors etc
This thread is a place where errors can be discussed and hopefully correct for the future.
All credit goes to webchills
Has anybody tried Skrill on 1.5.5?
IDEAS Girl
IDEAS Creative Group = Your image... our business!
My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes
I have installed Skrill module (for ver. 1.5.4) in Zen-cart version 1.5.6.
It seems to work ok, but throws some PHP warnings.
These are basically because some language variables such as
MODULE_PAYMENT_SKRILL_TEXT_DESCRIPTION
MODULE_PAYMENT_SKRILL_VERSION
MODULE_PAYMENT_SKRILL_TEXT_TITLE etc.
causes PHP Warning: Use of undefined constant
Calling URI is skrill_orders.php in the admin section.
Called class is skrill.php in /includes/modules/payment/skrill.php
These constants are in fact defined in the catalog section (e.g. /includes/languages/english/modules/payment/skril.php)
however they are not seen inside the admin section when the skrill class in the modules section is instantiated.
Any idea why this might happen?
Also, skrill_orders.php on admin pages instantiates a new order class on line 162
and obviously with a NULL order_id input. This causes inside the cart method in 274 to trow an error for currencies->get_decimal_placesCode:$order = new order($skrillGwayInfo->zc_oid);
I reckon, there is no session currency definition for the admin area.Code:$decimals = $currencies->get_decimal_places($_SESSION['currency']);
How to overcome this error?
The exact PHP error message is like this:
[30-Jan-2019 11:36:51 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_decimal_places() on null in /httpd.www/includes/classes/order.php:277
Stack trace:
#0 /httpd.www/includes/classes/order.php(49): order->cart()
#1 /httpd.www/admin/skrill_orders.php(162): order->__construct(NULL)
#2 {main}
thrown in /httpd.www/includes/classes/order.php on line 277
Bookmarks