Loading...
Was this page helpful?
This documentation provides a reference to the createPaymentSessionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates payment sessions. It's used by the Initialize Payment Session Store API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create payment sessions in your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
CreatePaymentSessionsWorkflowInput
CreatePaymentSessionsWorkflowInputpayment_collection_id
stringprovider_id
stringcustomer_id
stringOptionaldata
Record<string, unknown>Optionalcontext
Record<string, unknown>OptionalPaymentSessionDTO
PaymentSessionDTOid
stringamount
BigNumberValuecurrency_code
stringprovider_id
stringdata
Record<string, unknown>status
PaymentSessionStatuscreated_at
string | Dateupdated_at
string | Datepayment_collection_id
stringcontext
Record<string, unknown>Optionalauthorized_at
DateOptional