Skip to content

Commit

Permalink
fix(payments-plugin): Don't handle mollie webhook for any state after…
Browse files Browse the repository at this point in the history
… PaymentSettled (#2657)
  • Loading branch information
martijnvdbrug authored Jan 31, 2024
1 parent 4bbea6a commit 754da02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/payments-plugin/src/mollie/mollie.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ export class MollieService {
`Unable to find order ${mollieOrder.orderNumber}, unable to process Mollie order ${mollieOrder.id}`,
);
}
if (order.state === 'PaymentSettled') {
if (order.state === 'PaymentSettled' || order.state === 'Shipped' || order.state === 'Delivered') {
Logger.info(
`Order ${order.code} is already 'PaymentSettled', no need for handling Mollie status '${mollieOrder.status}'`,
`Order ${order.code} is already '${order.state}', no need for handling Mollie status '${mollieOrder.status}'`,
loggerCtx,
);
return;
Expand Down

0 comments on commit 754da02

Please sign in to comment.