You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(processedEvent?.action===PaymentActions.NOT_SUPPORTED||// We currently don't handle these payment statuses in the processPayment function.processedEvent?.action===PaymentActions.CANCELED||processedEvent?.action===PaymentActions.FAILED||processedEvent?.action===PaymentActions.REQUIRES_MORE){return}
It would be nice to have at least the FAILED and CANCELED statuses handled to identify what went wrong and be able to expire payment links accordingly.
Additionally, the Stripe module's docs states that the payment_intent.payment_failed status should be forwarded to Medusa's webhook endpoint, which implies that at least this event should be handled properly, but it's not.
### Webhook Events
When you set up the webhook in Stripe, choose the following events to listen to:
-`payment_intent.amount_capturable_updated`-`payment_intent.succeeded`-`payment_intent.payment_failed`---
I tried to set this status manually using Payment Module Service but the updatePaymentSession method doesn't let updating payment session status.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Originally asked on discord but posting here to get more attention.
Do you have any plans in the near future to implement the remaining payment actions in the payment module's hook handler?
/packages/medusa/src/subscribers/payment-webhook.ts:42
It would be nice to have at least the
FAILEDandCANCELEDstatuses handled to identify what went wrong and be able to expire payment links accordingly.Additionally, the Stripe module's docs states that the
payment_intent.payment_failedstatus should be forwarded to Medusa's webhook endpoint, which implies that at least this event should be handled properly, but it's not./www/apps/resources/app/commerce-modules/payment/payment-provider/stripe/page.mdx:421
I tried to set this status manually using Payment Module Service but the
updatePaymentSessionmethod doesn't let updating payment session status.Maybe some workarounds come to your mind?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions