- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateCartPaymentsStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateCartPaymentsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates a cart's payment sessions. Their status must
be pending
or requires_more
. If not valid, the step throws an error.
Tip: You can use the retrieveCartStep to retrieve a cart's details.
Example#
Input#
ValidateCartPaymentsStepInput
ValidateCartPaymentsStepInputThe cart's details.
ValidateCartPaymentsStepInput
ValidateCartPaymentsStepInputcart
CartWorkflowDTOThe cart to validate payment sessions for.
cart
CartWorkflowDTOOutput#
PaymentSessionDTO[]
PaymentSessionDTO[]
PaymentSessionDTO[]
PaymentSessionDTO[]PaymentSessionDTO
PaymentSessionDTOThe payment session details.
PaymentSessionDTO
PaymentSessionDTOWas this page helpful?