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

feat(payments-plugin): Dont handle mollie webhook for any state after PaymentSettled #2657

Conversation

martijnvdbrug
Copy link
Collaborator

@martijnvdbrug martijnvdbrug commented Jan 31, 2024

Description

Occasionally, we receive webhooks from Mollie, while the Vendure order is already in state Shipped or Delivered. This results in a ORDER_PAYMENT_STATE_ERROR, because the order is already past its payment states. Even worse, a 500 is returned to Mollie, so Mollie will keep retrying this webhook.
While the root cause of these incoming hooks is not known, we should still not handle Mollie hooks when an order is already in PaymentSettled, Shipped or Delivered.

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

Copy link

netlify bot commented Jan 31, 2024

Deploy Preview for effervescent-donut-4977b2 canceled.

Name Link
🔨 Latest commit f805c7e
🔍 Latest deploy log https://app.netlify.com/sites/effervescent-donut-4977b2/deploys/65b9ea35db44ef000896dfb3

@michaelbromley michaelbromley merged commit 754da02 into vendure-ecommerce:master Jan 31, 2024
16 of 18 checks passed
@michaelbromley
Copy link
Member

Thanks Martijn!

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

Successfully merging this pull request may close these issues.

2 participants