How billing sync works
Your billing platform stays the source of truth. Altruon creates the subscription after the first payment and records every payment on its invoice.
Altruon does not replace your billing platform. Plans, prices, subscriptions and invoices stay where they are. Altruon collects the money and writes the result back, so the two never disagree.
- Before paymentEstimatePrice, tax, coupons, trial and the amount due now come from the billing platform.
- After the first paymentSubscription createdThe first invoice is marked paid with the acquirer's reference.
- Every cycleRenewal collectedThe invoice webhook starts the charge. The payment is recorded on the invoice.
- AlwaysLifecycle in syncActive, trial, paused, canceled.
What Altruon reads
- Your catalog. Plans, charges and add-ons are referenced by their ids on the billing platform, in the session's
billingData.lineItems. - An estimate before payment. Price, tax, coupons, trial and the amount due now are calculated by the billing platform, so checkout shows the same total the invoice will.
- Invoices that fall due. The billing platform's webhook tells Altruon that an invoice needs collecting.
What Altruon writes
| When | What is written |
|---|---|
| First payment succeeds, or a trial is set up | The subscription is created |
| First payment succeeds | The first invoice is marked as paid, with a reference made of the acquirer, the payment method and the acquirer's transaction id |
| A renewal is collected | The payment is recorded on that invoice |
A session carries billingData.metadata | The metadata is passed to the subscription |
| A chargeback arrives | It is recorded on the billing platform. Today this covers direct debit reversals with Trustly |
Every subscription, invoice and transaction in the Altruon backoffice links to its record in the billing platform's dashboard and in the acquirer's dashboard.
Differences between platforms
| Billing platform | You provide | How a payment is recorded |
|---|---|---|
| Stripe Billing | Secret key | Stripe does not charge its own payment methods. The invoice is marked as paid out of band |
| Chargebee | API token and site URL | The payment is recorded on the invoice |
| Recurly | Private API key, EU or US domain | A transaction is recorded on the invoice |
| Frisbii | API key | The invoice is settled with an Altruon reference |
Metadata lands in the platform's own field: subscription metadata on Stripe Billing, meta_data on Chargebee, metadata on Frisbii, custom fields on Recurly.
What you keep doing on the billing platform
- Create and change plans, prices and coupons.
- Change, pause or cancel subscriptions. Altruon follows.
Align dunning
Your billing platform has its own dunning emails and cancellation rules. Match them to the retry schedule in Altruon so a subscription is not canceled while a retry is still planned. See Retries and dunning.