CreatePaymentSessionsWorkflowInput

The data to create payment sessions.

payment_collection_idstring
The ID of the payment collection to create payment sessions for.
provider_idstring
The ID of the payment provider that the payment sessions are associated with. This provider is used to later process the payment sessions and their payments.
customer_idstringOptional
The ID of the customer that the payment session should be associated with.
dataRecord<string, unknown>Optional
Custom data relevant for the payment provider to process the payment session. Learn more in this documentation.
contextRecord<string, unknown>Optional
Additional context that's useful for the payment provider to process the payment session. Currently all of the context is calculated within the workflow.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break