- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateExistingPaymentCollectionStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateExistingPaymentCollectionStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a cart doesn't have a payment collection. If the cart has a payment collection, the step throws an error.
Tip: You can use the retrieveCartStep to retrieve a cart's details.
Example#
Input#
ValidateExistingPaymentCollectionStepInput
ValidateExistingPaymentCollectionStepInputThe details of the cart to validate its payment collection.
ValidateExistingPaymentCollectionStepInput
ValidateExistingPaymentCollectionStepInputcart
CartDTO & objectThe cart to validate.
cart
CartDTO & objectWas this page helpful?