MultiSafepay / opencart

MultiSafepay OpenCart plugin
5 stars 7 forks source link

Add support for OpenCart 4.0.2.x & PHP 8.3 #16

Closed jorimvanhove closed 6 months ago

jorimvanhove commented 6 months ago

Starting from OpenCart v4.0.2.x, the GetMethod function in payment modules is renamed to GetMethods. This is a breaking change and results in an notice while fetching the built-in payment methods, which terminates execution of the event method.

Notice: Undefined property: Proxy::getMethod in /htdocs/extension/multisafepay/system/library/multisafepayevents.php on line 102

The result is that no MultiSafePay payment methods are displayed in the checkout.

See https://github.com/opencart/opencart/blame/fa8ecb37df3ce9894f75465a5b40ff41b48b8f5f/upload/extension/opencart/catalog/model/payment/cod.php#L4

Affected plugin version: 1.3.0 (is this the correct repo?)

danielcivit commented 6 months ago

Hi @jorimvanhove .

Thanks for your comment and contacting us.

We will keep this ticket open, in order to get back to you once a new version supporting OpenCart 4.0.2.x is released

danielcivit commented 6 months ago

Closing this issue. We can follow up on this topic here