Loading...
Was this page helpful?
This documentation provides a reference to the createPaymentSessionStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates a payment session.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createPaymentSessionStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createPaymentSessionStep({8 "payment_collection_id": "{value}",9 "provider_id": "{value}",10 "amount": 48,11 "currency_code": "byn"12 })13 }14)
CreatePaymentSessionStepInput
CreatePaymentSessionStepInputpayment_collection_id
stringprovider_id
stringamount
BigNumberInputcurrency_code
stringdata
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