Fix compatibility with Commerce 3.x by initializing gateway plugin (see #3540152)
This merge request fixes a fatal error occurring when using the Paybox gateway with Commerce 3.x:
Error: Call to a member function getPluginId() on null in PaymentStorage->doCreate()
The fix ensures that the payment gateway plugin is properly initialized before calling PaymentStorage::create()
.
This has been tested on a Drupal 10 + Commerce 3.x site. Feedback welcome.
Related issue: #3540152
Edited by devator