Private preview
Customize Billing with scriptsPrivate preview
Use scripts to program custom billing logic that runs directly on Stripe.
Get early access to scripts
Script authoring is currently in private preview. Sign up.
You can use script extensions to customize how Stripe Billing behaves at specific steps in the billing flow. Scripts let you modify the Stripe default behavior when it doesn’t match your billing requirements. Add custom logic to change how to calculate proration amounts, control how to apply customer balances, or define how to route items across invoices. You can configure this and similar behavior through scripts, without building or maintaining anything outside of Stripe.
You can use two types of scripts, both of which run on the Stripe infrastructure as part of the billing workflow. Stripe packages both as apps.
| Type | Description | When to use |
|---|---|---|
| Stripe-authored scripts | Prebuilt, ready to use scripts you can activate and configure in the Dashboard. |
|
| User-authored scripts | You create the scripts in TypeScript to support logic specific to your business. |
|