payment.ts

Payment providers, Stripe Checkout, and the billing portal.

config/payment.ts configures the payment provider, Stripe Checkout, the Stripe billing portal, subscription termination behavior, and tax options. Settings are listed in the order they appear in websitePaymentProviders.

provider

Prop

Type

stripe

Stripe payment settings.

billingPortal

Prop

Type

checkout

Prop

Type

The other fields under stripe are:

Prop

Type

Use paths, not full URLs

Set returnRedirectPath, successRedirectPath, and both fallbackRedirectPath fields to site paths without a domain. Stripe keys and the Webhook Secret should still be stored in environment variables or Cloudflare secrets.