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

POST https://api.mollie.com/v2/payments resulted in a 422 unknown response #58

Closed
bartrylant opened this issue Sep 6, 2024 · 2 comments

Comments

@bartrylant
Copy link

bartrylant commented Sep 6, 2024

Description

When using Mollie in Commerce 5, I get an error when trying to pay through Mollie. I'm using the provided example templates, so no errors on my side. I'm using a Mollie test api which is working perfectly fine on a Commerce 3 install. The payment options I activated in the Mollie dashboard all get shown, so far so good. So the api key works and I can retreive info from my Mollie account. It's when submitting the payment form, the error occurs. The error I get is:

Client error: `POST https://api.mollie.com/v2/payments` resulted in a `422 unknown` response: {"status":422,"title":"Unprocessable Entity","detail":"The webhook URL is invalid because it is unreachable from Mollie' (truncated...)

Steps to reproduce

  1. Add Mollie as a gateway, fill in a correct api key
  2. When checking out, select Mollie as a gateway
  3. Select a payment option provided by Mollie
  4. Click "pay"
  5. See the error

Additional info

  • Craft version: 5.4.1
  • PHP version: 8.3.8
  • Database driver & version: MySQL 8.3.0
  • Plugins & versions: Commerce 5.1.0.1 & Mollie for Craft Commerce 4.2.0
Copy link

linear bot commented Sep 6, 2024

@bartrylant bartrylant changed the title POST https://api.mollie.com/v2/payments resulted in a 422 unknown` response POST https://api.mollie.com/v2/payments resulted in a 422 unknown response Sep 6, 2024
@bartrylant
Copy link
Author

Looks to be a problem with calling the local webhook. The Mollie plugin for Commerce 3 didn't really care, but this one does.

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

No branches or pull requests

1 participant