Loading...
Was this page helpful?
This documentation provides a reference to the refundPaymentAndRecreatePaymentSessionWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow refunds a payment and creates a new payment session.
Source CodeWorkflow hook
Step conditioned by when
View step details
refundPaymentAndRecreatePaymentSessionWorkflowInput
refundPaymentAndRecreatePaymentSessionWorkflowInputpayment_collection_id
stringprovider_id
stringpayment_id
stringamount
BigNumberInputcustomer_id
stringOptionaldata
Record<string, unknown>Optionalcontext
Record<string, unknown>Optionalnote
stringOptionalPaymentSessionDTO
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