fix(payment): Idempotent cancellation and proper creationg fail handling (#10135)

RESOLVES SUP-188

**What**
Two changes are happening here
- In the stripe payment provider, idempotent cancellation action, if not id is provided then return the existing data unchanged
- Payment module should not try to cancel a session that have failed to be created in the first place
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-11-18 17:45:13 +00:00
1 parent 47ca1d4b54
commit b1b7a4abf1
4 files changed
+102 -16

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/payment": patch
"@medusajs/payment-stripe": patch
---
fix(payment): Idempotent cancellation and proper creationg fail handling