payment.ts

支付服务商、Stripe Checkout 和账单门户。

config/payment.ts 配置支付服务商、Stripe Checkout、Stripe 账单门户(Billing Portal)、订阅结束后的处理方式和税费选项。各项按 websitePaymentProviders 中的顺序列出。

provider

Prop

Type

stripe

Stripe 支付参数。

billingPortal

Prop

Type

checkout

Prop

Type

stripe 下的其他字段如下:

Prop

Type

路径不是完整网址

returnRedirectPath、successRedirectPath 和两个 fallbackRedirectPath 都填写站内路径,不要填写域名。Stripe 密钥和 Webhook Secret 仍应放在环境变量或 Cloudflare Secret 中。