Mollie noy compatible with Commerce 3.0

Created on 7 March 2025, 5 days ago

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).

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024