Ledger grants only what a signed Stripe webhook confirms, never a browser redirect. Stripe lists every object Ledger creates and every event it listens for.
Lines on an invoice
Every line is in the customer’s currency, set by their first paid plan.
A pay-as-you-go plan’s invoice has a $0 plan line and its overage lines. Free plans run entirely in Ledger, with no Stripe invoice.
When each line is billed
- The plan and seats bill in advance: on the first payment, then on each renewal invoice Stripe creates.
- Overage bills in arrears. When Stripe creates the renewal invoice, while it’s still a draft, Ledger adds the overage for the period that just ended. The same moment grants the new period’s allowance, about an hour before Stripe charges the card.
- Overage on an annual plan bills monthly. When each month ends, Ledger creates an invoice on the annual subscription with that month’s overage and storage and Stripe charges the saved card. The year’s last month goes on the renewal invoice.
- Seat changes reach Stripe from Ledger’s own queue, so
tracknever waits on Stripe. With the defaults a change is prorated on the next invoice;charge_nowinvoices an increase at once. - An upgrade charges the new plan in full now and starts a new period. The old plan’s overage bills at its own rate, and its storage at its own price on the next renewal.
- When a subscription ends, Ledger bills any remaining overage, credit and metered, and storage on a final invoice.
ceil(units ÷ overageBillingUnits) × overageUnitAmountCents, up to the customer’s one monthly cap. Overage has the rules. On an annual plan the cap is per month.
What Ledger checks on an invoice
Before it grants a renewal, Ledger checks the plan’s line at your full price, and seat lines at the seat price for their count. A coupon, whether one of your catalog’s promotion codes or one you add in Stripe, lowers what the customer pays, never what they get. Renewals and lifecycle covers failed payments, refunds and disputes.Rules
- Ledger grants a renewal from an invoice paid in full by card or bank: an invoice paid partly from a Stripe customer balance grants nothing.
Next steps
Checkout and attach
The first payment and when grants land.
Tax
Have Stripe calculate and collect tax.