craftcms / commerce-mollie

Mollie payment gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-mollie
MIT License
5 stars 10 forks source link

TypeError when trying to submit payment form #49

Closed chlsydkysr closed 1 year ago

chlsydkysr commented 1 year ago

Description

I migrated to Craft 4 & Commerce 4 and wasn't able to place orders with Mollie as gateway. When submitting the payment form, I receive the following error message: TypeError craft\commerce\omnipay\base\RequestResponse::getRedirectData(): Return value must be of type array, null returned

I noticed that the function "getRedirectData()" in omnipay/mollie/src/Message/Response/FetchTransactionResponse.php currently returns null. When changing this to return $this->data, I am able to submit the payment and everything works again as suspected.

Additional info

robin-braibant-alpine commented 1 year ago

Same issue here. First opened an issue at the Commerce repository: https://github.com/craftcms/commerce/issues/3126

lukeholder commented 1 year ago

@alpine-digital @chlsydkysr @mediabeastnz

This should be fixed in commerce-mollie 4.1.0.1 - Please update and let us know how it goes.