This documentation provides a reference to the processPaymentWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow processes a payment to either complete its associated cart, capture the payment, or authorize the payment session. It's used when a Webhook Event is received.
You can use this workflow within your own customizations or custom workflows, allowing you to process a payment in your custom flows based on a webhook action.
Source CodeWorkflow hook
Step conditioned by when
View step details
ProcessPaymentWorkflowInput
ProcessPaymentWorkflowInputaction
PaymentActionsThis section lists the events that are either triggered by the emitEventStep
in the workflow, or by another workflow executed within this workflow.
You can listen to these events in a subscriber, as explained in the Subscribers documentation.
Event | Description | Payload | Action |
---|---|---|---|
| Emitted when an order is placed, or when a draft order is converted to an order. |
| |
| Emitted when a payment is captured. |
|