Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a50f5ba
fix: payment error handling
SGFGOV Oct 27, 2025
ae1ba8f
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 28, 2025
0b3a402
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 28, 2025
22e89ec
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 28, 2025
56c8410
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 28, 2025
7cdee6e
Create dirty-radios-kiss.md
willbouch Oct 29, 2025
0de9aa1
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 30, 2025
358c4c4
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 30, 2025
4cc8241
fix: updated to use isMedusaError
SGFGOV Oct 30, 2025
ff189de
Merge branch 'fix/payment-provider-error-propogation' of https://gith…
SGFGOV Oct 30, 2025
abbe207
Merge branch 'develop' into fix/payment-provider-error-propogation
willbouch Oct 30, 2025
275d49a
Merge branch 'develop' into fix/payment-provider-error-propogation
willbouch Oct 30, 2025
d93b31b
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 31, 2025
3e07baf
fix: error message updated and error type corrected
SGFGOV Oct 31, 2025
a572cf7
Merge branch 'fix/payment-provider-error-propogation' of https://gith…
SGFGOV Oct 31, 2025
558dc86
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 31, 2025
ea6f090
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Oct 31, 2025
dd2fe50
Merge branch 'develop' into fix/payment-provider-error-propogation
carlos-r-l-rodrigues Nov 3, 2025
098a2d5
Merge branch 'develop' into fix/payment-provider-error-propogation
SGFGOV Nov 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dirty-radios-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---

fix(core-flows): payment error handling
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ export const authorizePaymentSessionStep = createStep(
logger.error(
`Error was thrown trying to authorize payment session - ${input.id} - ${e}`
)
// this implies the error is already a MedusaError, so we can throw it safely,
if (e instanceof MedusaError) {
throw e
}

}

const paymentSession = await paymentModule.retrievePaymentSession(
Expand Down
Loading