---
sidebar_label: "Module Options"
---
import { Table } from "docs-ui"
export const metadata = {
title: `Payment Module Options`,
}
# {metadata.title}
In this document, you'll learn about the options of the Payment Module.
## All Module Options
Option
Description
Required
Default
`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](#providers).
No
\-
## providers
The `providers` option is an array of payment module providers.
When the Medusa application starts, these providers are registered and can be used to process payments.
For example:
```js title="medusa-config.js"
const { Modules } = require("@medusajs/utils")
// ...
module.exports = defineConfig({
// ...
modules: {
[Modules.PAYMENT]: {
resolve: "@medusajs/payment",
options: {
providers: [
{
resolve: "@medusajs/payment-stripe",
id: "stripe",
options: {
// ...
},
},
],
},
},
},
})
```
The `providers` option is an array of objects that accept the following properties:
- `resolve`: A string indicating the package name of the module provider or the path to it relative to the `src` directory.
- `id`: A string indicating the provider's unique name or ID.
- `options`: An optional object of the module provider's options.