Hi
We need to update our urls for Opayo Direct, we have message Woocomerce who have said replace the old urls with the new ones but we cannot seem to find where to do this?
Can anyone help?
Currently using:
]]>PatSaTECH’s Opayo Direct Gateway for WooCommerce
Opayo Server Gateway for WooCommerce
WooCommerce Opayo Payment Suite
Are you still using the Sage extension for WooCommerce?
How did you integrate it with Paya?
Line 401 still needs to be updated for woocommerce 3.0+
Should use: $order->get_total()
Cheers!
]]>I’ve found a bug with this plugin. If for example your card expires 05/17 (this month), it can still be used until the end of the month. Here’s your code in the is_valid_expire_date function:
if (date("Y-m-d", strtotime($year . "-" . $month . "-01")) > date("Y-m-d")) {
return true;
}
This should be changed to:
$day = date('t', strtotime($year . "-" . $month));
if (date("Y-m-d", strtotime($year . "-" . $month . "-" . $day)) > date("Y-m-d")) {
return true;
}
This gets the last day of the current month.
]]>Hi,
Since upgrading to WooCommerce 3.0 I’ve noticed there’s some notices being thrown because of the SagePay Direct plugin. Examples of these notices are:
[05-Apr-2017 10:59:18 UTC] billing_address_2 was called incorrectly. Order properties should not be accessed directly.. This message was added in version 3.0.
[05-Apr-2017 12:32:03 UTC] billing_city was called incorrectly. Order properties should not be accessed directly.. This message was added in version 3.0.
These issues can be easily fixed by using functions such as $order->get_billing_address_2();
rather than using magic methods. I have a fixed version of this plugin if you have a Git repo I could create a pull request to?