Closed chlsydkysr closed 1 year ago
Same issue here. First opened an issue at the Commerce repository: https://github.com/craftcms/commerce/issues/3126
@alpine-digital @chlsydkysr @mediabeastnz
This should be fixed in commerce-mollie 4.1.0.1 - Please update and let us know how it goes.
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