- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createPaymentCollectionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createPaymentCollectionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates payment collections in a cart.
Example#
Input#
CreatePaymentCollectionCartStepInput
CreatePaymentCollectionCartStepInputThe details of the payment collections to create.
CreatePaymentCollectionCartStepInput
CreatePaymentCollectionCartStepInputcurrency_code
string
currency_code
stringamount
BigNumberInputThe payment collection's amount.
amount
BigNumberInputmetadata
Record<string, unknown>OptionalCustom key-value pairs to store in the payment collection.
metadata
Record<string, unknown>OptionalOutput#
PaymentCollectionDTO[]
PaymentCollectionDTO[]
PaymentCollectionDTO[]
PaymentCollectionDTO[]PaymentCollectionDTO
PaymentCollectionDTOThe payment collection details.
PaymentCollectionDTO
PaymentCollectionDTOWas this page helpful?