Setup
stripe() for any PayKit provider and everything else stays the same.
Configuration Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
provider | PayKitProvider | Yes | — | A PayKit provider instance (e.g. stripe(), gopay()) |
webhookSecret | string | null | No | null | Webhook secret used to verify incoming webhook payloads |
amountToCentsMultiplier | number (≥ 1) | No | 1 | Multiplies the Medusa amount before sending to the provider. Use 100 for cent-based providers |
debug | boolean | No | false | Logs PayKit operations to the console |
amountToCentsMultiplier
Some providers (e.g. GoPay) expect amounts in the smallest currency unit — 3000 for 30 EUR. If Medusa is passing the amount in the major unit, set this option to convert automatically:
1 (no conversion). Minimum value is 1.