Stripe Billing
Connect Stripe Billing to Altruon with a secret key and a webhook destination, so subscriptions, invoices and credit notes stay in sync.
Connect Stripe Billing so that Altruon creates subscriptions there, collects every invoice through the acquirers you route to, and keeps subscriptions, invoices and credit notes in sync.

- What syncs
- Subscriptions, invoices (first and recurring) and credit notes
- What you need
- A Stripe secret key (
sk_test_...orsk_live_...) - Webhook
- Manual. You add an event destination in Stripe with eight invoice and subscription events.
- Good to know
- Stripe never charges its own payment methods: Altruon collects the payment and marks the invoice paid out of band.
Before you start
- Altruon backoffice accessYou can sign in to the environment you are connecting. See Sandbox and environments.
- A Stripe account with Stripe BillingYou can open Developers > API Keys and Developers > Webhooks in the Stripe Dashboard.
- An acquirer to collect withAltruon collects Stripe Billing invoices through an acquirer you connect. See Acquirers.
Get your Stripe secret key
- Sign in to the Stripe Dashboard.
- Go to Developers > API Keys, in the bottom left section.
- Copy the Secret Key. It looks like
sk_test_...in test mode andsk_live_...in live mode.
You need the secret key only.
Connect Stripe Billing in Altruon
- Sign in to Altruon and go to Settings > Billing Platforms.
- Click + Add Integration and select Stripe Billing.
- Enter your secret key.
- Click Add Integration.
Once connected, the Stripe Billing integration is marked Active.

Set up the webhook
Altruon needs a webhook from Stripe to stay in sync with your billing events.
This destination is only for Stripe Billing. Card payments collected through Stripe as an acquirer use a different endpoint and a different event list: see Stripe.
-
In Altruon, go to Settings > Billing Platforms and click View Integration on Stripe Billing.
-
Copy the Webhook Endpoint URL that Altruon generated.

Altruon: Integration Details for Stripe Billing -
Sign in to the Stripe Dashboard and go to Developers > Webhooks.
-
Click + Add destination.
-
Select these event types:
invoice.createdinvoice.finalizedinvoice.paidcustomer.subscription.createdcustomer.subscription.deletedcustomer.subscription.updatedcustomer.subscription.pausedcustomer.subscription.resumed
-
Click Continue.
-
Set the Destination type to Webhook endpoint and click Continue.
-
Paste the Altruon webhook URL into the Endpoint URL field.
-
Give the destination a descriptive name, for example "Altruon webhook".
-
Click Create destination.

Test the connection
- Open Settings > Billing Platforms. Stripe Billing is listed as Active.
- With an acquirer connected and a routing entry in place, take a test payment in sandbox for a Stripe Billing price. See Testing.
- Check the result in Stripe: the subscription exists, and its first invoice is marked paid with a reference made of the acquirer, the payment method and the acquirer's transaction ID.
Notes and limits
- Subscriptions. Altruon creates the subscription in Stripe Billing after the first successful payment or trial setup, with any supported acquirer and payment method.
- Invoices. First and recurring invoices are synchronized and collected automatically.
- Credit notes. Credit notes are synchronized, and the refund is made automatically on any supported acquirer and payment method.
- Paid out of band. Stripe never charges its own payment methods for these invoices. Altruon charges through your acquirer and marks the invoice paid out of band.
- Two Stripe connections. Stripe Billing and Stripe as an acquirer are separate connections with separate webhooks. Keep
invoice.*andcustomer.subscription.*events on this destination only. - Trials. The trial length comes from your catalog, for example
trial_period_dayson the Stripe Price. See Trials.