- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
getWebhookActionAndData - Payment Module Reference
This documentation provides a reference to the getWebhookActionAndData
method. This belongs to the Payment Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves webhook event data with the associated payment provider.
Learn more about handling webhook events in this guide
Example#
In the following example, req
is an instance of MedusaRequest
:
Parameters#
The webhook event's details.
Returns#
Promise
Promise<WebhookActionResult>Resolves when the webhook event is handled successfully.
Promise
Promise<WebhookActionResult>Was this page helpful?