Tested on a Drupal 10 using commerce 2 with upgrading on commerce 3
with changes on mr, it's work perfectly
as commerce 3 is a major release, it will be necessary to do the same with a version 2.x
The commerce_paybox_payment
module is currently not compatible with Commerce 3.x. Although the module can be installed on a Drupal 10 site using Commerce 3.x, attempting to place an order using a Paybox payment gateway results in a fatal error:
Error: Call to a member function getPluginId()
on null in Drupal\commerce_payment\PaymentStorage->doCreate()
(line 50 of modules/contrib/commerce/modules/payment/src/PaymentStorage.php
).
This indicates that the module does not properly initialize the payment gateway plugin before trying to create a payment entity, which is now required by Commerce 3.x (see change record → ).
commerce_paybox_payment
module.
Expected: The payment is processed via Paybox.
Actual: A fatal error is thrown due to an uninitialized plugin instance.
Update the commerce_paybox_payment
module to support Commerce 3.x by ensuring compatibility with internal changes in the commerce_payment
module.
The fatal error occurs because the payment gateway plugin is not properly initialized before calling PaymentStorage::create()
. Commerce 3.x requires the gateway plugin to be set explicitly, as outlined in the following change record:
https://www.drupal.org/node/3468511 →
.
This merge request introduces the necessary adjustments to ensure the plugin is initialized, allowing payments to be processed correctly. Backward compatibility with Commerce 2.x is not guaranteed, so a separate 2.x release is recommended.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Tested on a Drupal 10 using commerce 2 with upgrading on commerce 3
with changes on mr, it's work perfectly
as commerce 3 is a major release, it will be necessary to do the same with a version 2.x