Skip to main content
Skip to main content

Payment Module Options

In this document, you'll learn about the options of the Payment Module.

All Module Options

OptionDescriptionRequiredDefault

webhook_delay

A number indicating the delay in milliseconds before processing a webhook event.

No

5000

webhook_retries

The number of times to retry the webhook event processing in case of an error.

No

3

providers

An array of payment providers to install and register. Learn more in this section.

No

-


providers

The providers option is an array of either payment provider modules, payment plugins, or path to a file that holds a payment provider.

When the Medusa application starts, these providers are registered and can be used to process payments.

For example:

medusa-config.js
const modules = {
// ...
payment: {
resolve: "@medusajs/payment",
options: {
providers: [
{
resolve: "@medusajs/payment-stripe",
options: {
// ...
},
},
{
resolve: "medusa-payment-paypal",
options: {
// ...
},
},
],
},
},
}

The providers option is an array of objects that accept the following properties:

  • resolve: A string indicating the package name of the payment provider module or the payment plugin, or the path to the file defining the payment provider.
  • options: An optional object of options to pass to the payment provider.
Was this section helpful?