So, as I was developing the payment method extension for opencart 4, I thought that it would be a good idea to be able to change the payment method for an order. An use case would be when a customer requests store admin or clerk to change the payment method for any motive.
The admin would then change the payment method like in the picture:

I used the default Opencart methods to change between to make sure it was not something related to my extension, and by doing so I still got the same error when I reload the page after clicking confirm (step 4).
This is the error:
Code: Select all
Warning: Trying to access array offset on value of type null in /shared/httpd/opencart4/htdocs/administrator/controller/sale/order.php on line 999Warning: Trying to access array offset on value of type null in /shared/httpd/opencart4/htdocs/administrator/controller/sale/order.php on line 1005Warning: Trying to access array offset on value of type null in /shared/httpd/opencart4/htdocs/administrator/controller/sale/order.php on line 1135TypeError: Opencart\Admin\Model\Setting\Extension::getExtensionByCode(): Argument #2 ($code) must be of type string, null given in /shared/httpd/opencart4/htdocs/administrator/model/setting/extension.php on line 16
Thanks in advance, and any guidance is deeply appreciated.