chore: payment auto capture + remove enum from utils (#7513)
What: - handles payments session that are auto captured - removes all the enums from `@medusajs/types` - move all `@medusajs/types` to devDependencies
This commit is contained in:
committed by
GitHub
parent
2c5ba408d4
commit
f1ced57d5f
@@ -29,7 +29,7 @@ export const validateCartPaymentsStep = createStep(
|
||||
]
|
||||
|
||||
const paymentsToProcess = paymentCollection.payment_sessions?.filter((ps) =>
|
||||
processablePaymentStatuses.includes(ps.status)
|
||||
processablePaymentStatuses.includes(ps.status as PaymentSessionStatus)
|
||||
)
|
||||
|
||||
if (!paymentsToProcess?.length) {
|
||||
|
||||
Reference in New Issue
Block a user