Closed Juleshendriks closed 6 months ago
Hi @Juleshendriks,
that's exactly right. You can then use the Order
's id from the events to find the specific order and retry them after the user has updated the payment method.
$order->retryNow();
s. https://www.cashiermollie.com/14-retry.html#subscriptions-and-failed-payments for further details.
Can anyone confirm the following:
When a payment fails, my application gets informed trough the webhook. I can listen in my application for the events: OrderPaymentFailed and OrderPaymentFailedDueToInvalidMandate.
Inform my users their payment has failed and they need to update their payment method. When payment method is updated, retry the payment.
Thanks in advance.