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
2024-11-18 18:45:13 +01:00
committed by GitHub
parent 47ca1d4b54
commit b1b7a4abf1
4 changed files with 102 additions and 16 deletions

View File

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