Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when trying to submit payment form #49

Closed
chlsydkysr opened this issue Mar 24, 2023 · 2 comments
Closed

TypeError when trying to submit payment form #49

chlsydkysr opened this issue Mar 24, 2023 · 2 comments
Labels

Comments

@chlsydkysr
Copy link

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

  • Craft version: Pro 4.4.5
  • PHP version: 8.0.27
  • Database driver & version: MySQL 5.7.40
  • Plugins & versions: Mollie for Craft Commerce 4.1.0
@chlsydkysr chlsydkysr added the bug label Mar 24, 2023
@alpine-digital
Copy link

Same issue here.
First opened an issue at the Commerce repository: craftcms/commerce#3126

@lukeholder
Copy link
Member

@alpine-digital @chlsydkysr @mediabeastnz

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants