|
1
|
{"slug":"/references/payment/events","title":"Payment Module Events Reference","frontmatter":{"slug":"/references/payment/events","sidebar_label":"Events Reference","generate_toc":true},"toc":[],"blocks":[{"kind":"markdown","html":"This reference shows all the events emitted by the Medusa application related to the Payment Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Payment","events":[{"name":"payment.captured","id":"paymentcaptured","description":"Emitted when a payment is captured.","payload":"```ts\n{\n id, // the ID of the payment\n}\n```","workflows":[{"name":"capturePaymentWorkflow","href":"/references/medusa-workflows/capturePaymentWorkflow"},{"name":"processPaymentWorkflow","href":"/references/medusa-workflows/processPaymentWorkflow"},{"name":"markPaymentCollectionAsPaid","href":"/references/medusa-workflows/markPaymentCollectionAsPaid"}]},{"name":"payment.refunded","id":"paymentrefunded","description":"Emitted when a payment is refunded.","payload":"```ts\n{\n id, // the ID of the payment\n}\n```","workflows":[{"name":"refundPaymentWorkflow","href":"/references/medusa-workflows/refundPaymentWorkflow"}]}]}]}]} |