Loading...
Was this page helpful?
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 CodeWorkflow hook
Step conditioned by when
View step details
CreatePaymentCollectionForCartWorkflowInputDTO
CreatePaymentCollectionForCartWorkflowInputDTOcart_id
stringmetadata
Record<string, unknown>OptionalPaymentCollectionDTO
PaymentCollectionDTOid
stringcurrency_code
stringamount
BigNumberValuestatus
PaymentCollectionStatuscompleted_at
string | DateOptionalcreated_at
string | DateOptionalupdated_at
string | DateOptionalmetadata
Record<string, unknown>Optional