- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createPaymentCollectionForCartWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createPaymentCollectionForCartWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates a payment collection for a cart. It's executed by the Create Payment Collection Store API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to wrap custom logic around adding creating a payment collection for a cart.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreatePaymentCollectionForCartWorkflowInputDTO
CreatePaymentCollectionForCartWorkflowInputDTOThe details to create the payment collection.
CreatePaymentCollectionForCartWorkflowInputDTO
CreatePaymentCollectionForCartWorkflowInputDTOcart_id
stringThe ID of the cart to create a payment collection for.
cart_id
stringmetadata
Record<string, unknown>OptionalCustom key-value pairs to store in the payment collection.
metadata
Record<string, unknown>OptionalWas this page helpful?