StripeProviderOptions
Defined in: src/billing/stripe.ts:73
Options for createStripeProvider.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
apiBase? |
string |
Override the API base URL (sandbox / mock servers). | ProviderHttpOptions.apiBase |
src/billing/verify.ts:143 |
apiVersion? |
string |
Pin a Stripe API version (Stripe-Version header) for REST calls. |
- | src/billing/stripe.ts:83 |
fetch? |
FetchLike |
fetch implementation (tests, proxies). Default: global fetch. |
ProviderHttpOptions.fetch |
src/billing/verify.ts:141 |
metadataKey? |
string |
Metadata key carrying our customer id (checkout + customer objects). Default "customerId". |
- | src/billing/stripe.ts:81 |
now? |
() => number |
Clock (unix ms) for the tolerance check. Default Date.now. |
- | src/billing/stripe.ts:85 |
secretKey? |
string |
Secret API key (sk_… / restricted rk_…). Required for REST calls (reconcile, checkout, portal, usage). |
- | src/billing/stripe.ts:75 |
tolerance? |
number |
Signature timestamp tolerance in seconds. Default 300. |
- | src/billing/stripe.ts:79 |
webhookSecret? |
string | readonly string[] |
Endpoint signing secret(s) (whsec_…). Several during secret rolling. Required for webhooks. |
- | src/billing/stripe.ts:77 |