Payment lifecycle
What happens from the first payment to each renewal, what Altruon writes to your billing platform, and what happens when a payment fails.
A subscription has two kinds of payment. The first one happens with the shopper present, at checkout. Every later one is a renewal that Altruon collects without the shopper. Both end the same way: with the result written to the invoice on your billing platform.
First payment
- The amount comes from your billing platform. Before payment, Altruon asks it for an estimate that includes price, tax, coupons, any trial and the amount due now.
- Altruon sends the charge to the acquirer that your routing entries select for the payment method and currency.
- The subscription is created on the billing platform only after the payment succeeds, or after the payment method is stored for a trial.
- The first invoice is marked as paid with a reference built from the acquirer, the payment method and the acquirer's transaction id.
Some payment methods finish later than the checkout: a 3D Secure challenge, a redirect, a Pix QR code. The acquirer then tells Altruon the outcome through its webhook, and Altruon completes the same steps.
Trials
With a trial, nothing is due today. Checkout stores a reusable payment method instead of charging it:
| Mode | When it is used |
|---|---|
CHARGE | A normal payment |
SETUP | A card is tokenized at zero amount |
CONSENT | The shopper gives a Pix or UPI consent |
MANDATE | The shopper signs an open-banking mandate |
When the trial ends, the billing platform activates the subscription and raises an invoice. Altruon collects it with the stored method. See Trials.
Renewals
The billing platform owns the schedule. When an invoice is due it notifies Altruon, Altruon charges the stored payment method, and the payment is recorded on that invoice. For Pix Automático and UPI, a pre-debit notice is sent to the shopper before each debit.
Changes on the billing platform flow the other way too: Altruon follows the subscription as it becomes active, enters a trial, is paused or is canceled.
When a renewal fails
The invoice moves to dunning with a retry count and a next retry date. Altruon then retries according to your settings, and when retries run out it applies the end action you chose: cancel the subscription on the billing platform, flag the invoice as dunning exhausted, or stop retrying. See Retries and dunning.
Invoice statuses
| Status | Meaning |
|---|---|
| Paid | The payment was collected and recorded |
| Payment due | The invoice is open and no attempt has succeeded yet |
| Dunning | A renewal failed and retries are scheduled |
| Dunning exhausted | Retries ran out |
| Refunded | The payment was refunded |
| Voided | The invoice was voided on the billing platform |
| Chargeback | The payment was disputed and reversed |
Events you can listen to
Each stage emits a webhook event to your server, for example checkout.session.completed, payment.succeeded, invoice.paid, invoice.dunning_started and payment.retry_failed. The full list is in Event types.
Webhook payloads are thin: they say what happened and to which resource. Fetch the current state with Get transaction details.