- Issue created by @hoporr
Initial patch attached. The module needed to just use the Parent Class constructor and create function.
Drupal 10.4.3
Commerce Core 3.0.0 (Fresh install), this is the recommended Version for Drupal Core ^10.3
Mollie 2.2.1
Multiple errors with Commerce 3.0:
1) When setting up the mollie payment gateway (at /admin/commerce/config/payment-gateways), and then trying to edit it, I get the following error:
TypeError: array_map(): Argument #2 ($array) must be of type array, null given in array_map() (line 304 of C:\...\modules\contrib\commerce\modules\payment\src\Plugin\Commerce\PaymentGateway\PaymentGatewayBase.php).
Stack Trace:
#0 C: ...modules\contrib\commerce\modules\payment\src\Plugin\Commerce\PaymentGateway\PaymentGatewayBase.php(304): array_map(Object(Closure), NULL)
#1 C:...\modules\contrib\mollie\modules\mollie_commerce\src\Plugin\Commerce\PaymentGateway\Mollie.php(99): Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\PaymentGatewayBase->buildConfigurationForm(Array, Object(Drupal\Core\Form\FormState))
2) During checkout, using mollie payment gateway, on the last step when pressing "Pay and complete purchase":
Error: Call to a member function get() on null in Drupal\mollie_commerce\Plugin\Commerce\PaymentGateway\Mollie->getMode() (line 188 of modules\contrib\mollie\modules\mollie_commerce\src\Plugin\Commerce\PaymentGateway\Mollie.php).
Active
2.2
Code
Initial patch attached. The module needed to just use the Parent Class constructor and create function.