How Altruon works
The pieces you connect, what each one is responsible for, and how a first payment and a renewal move between them.
Altruon sits between two systems you already own: a billing platform that knows what to charge, and one or more acquirers that can charge it. Altruon does the work in the middle.
Stripe Billing
Chargebee
Recurly
Frisbii
Adyen
Checkout.com
dLocal
Nuvei
PagBrasil
Stripe
TrustlyWho does what
| Billing platform | Altruon | Acquirer | |
|---|---|---|---|
| Plans, prices, coupons, tax | Owns them | Reads them to build the checkout estimate | |
| Subscriptions and invoices | Source of truth | Creates the subscription after the first payment, records each payment on the invoice | |
| Checkout | Hosted pages or Altruon.js | ||
| Choosing where a payment goes | Routing entries | ||
| Authorizing the payment | Sends the request | Authorizes and settles to you | |
| Renewals | Raises the invoice | Collects it, retries it if it fails | Authorizes |
| Funds | Never holds or settles funds | Settles to your account |
You keep your own contract with each acquirer and your own account on the billing platform. Altruon is a technology layer.
The objects you work with
| Object | What it is | Where you manage it |
|---|---|---|
| Tenant | Your workspace. Its subdomain appears in your API and checkout URLs as {your-domain}. | Provisioned for you |
| Acquirer connection | Credentials for one acquirer account | Settings > Payment Gateways |
| Routing entry | Maps a payment method and a currency to an acquirer | Settings > Payment Gateways, Routing tab |
| Billing connection | Credentials for your billing platform | Settings > Billing Platforms |
| Session | One checkout attempt: currency, line items, optional customer data. Single use, valid for 15 minutes. | Created by your server or by a hosted page |
| Webhook endpoint | Where Altruon sends you signed events | Settings > Webhooks |
| API keys | A secret key for your server, a publishable key for the browser | Settings > API Keys |
Read more in Sessions and the Glossary.
A first payment
- A session exists: your server created it, or the shopper opened a hosted page link and Altruon created it.
- The shopper pays on the hosted page or in the Altruon.js component embedded in your page.
- Altruon picks the acquirer from your routing entries for that payment method and currency, and sends the charge.
- When the acquirer approves, Altruon creates the subscription on your billing platform and marks the first invoice as paid, with a reference that carries the acquirer, the method and the acquirer's transaction id.
- The shopper returns to your
redirectUrl, or your page receives theonSuccesscallback. Your server can also receive a signed webhook.
A renewal
Your billing platform decides when a renewal is due and raises the invoice. Altruon hears about it through the billing platform's webhook, charges the stored payment method through the acquirer, and records the result on the invoice. If the charge fails, the invoice moves to dunning and Altruon retries it. See Retries and dunning.
This is why each connection needs its webhook: without it, Altruon never hears that an invoice is due or that an asynchronous payment settled. See Webhooks.
What you configure and what you build
| You configure, in the backoffice | You build, if you want to |
|---|---|
| Acquirer and billing platform connections | A server call that creates a session |
| Routing entries | Your own checkout page with Altruon.js |
| Checkout appearance and hosted pages | A webhook handler for Altruon events |
| Webhook endpoints |
With hosted pages you build nothing: the whole flow is configured.