Skip to Content
Concepts

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

First payment
ShopperAltruonAcquirerBilling platform01 Pays at checkout02 Estimate: price, tax, trial03 Charge04 Approved05 Create subscription06 Mark first invoice paid
  • 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:

ModeWhen it is used
CHARGEA normal payment
SETUPA card is tokenized at zero amount
CONSENTThe shopper gives a Pix or UPI consent
MANDATEThe 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

Renewal
Billing platformAltruonAcquirer01 Invoice due (webhook)02 Charge the stored method03 Result04 Record payment on the invoice

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

StatusMeaning
PaidThe payment was collected and recorded
Payment dueThe invoice is open and no attempt has succeeded yet
DunningA renewal failed and retries are scheduled
Dunning exhaustedRetries ran out
RefundedThe payment was refunded
VoidedThe invoice was voided on the billing platform
ChargebackThe 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.