Skip to Content
Connections · Billing platforms

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.

At a glance
Stripe Billing
What syncs
Subscriptions, invoices (first and recurring) and credit notes
What you need
A Stripe secret key (sk_test_... or sk_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

  1. Sign in to the Stripe Dashboard.
  2. Go to Developers > API Keys, in the bottom left section.
  3. Copy the Secret Key. It looks like sk_test_... in test mode and sk_live_... in live mode.

You need the secret key only.

Connect Stripe Billing in Altruon

  1. Sign in to Altruon and go to Settings > Billing Platforms.
  2. Click + Add Integration and select Stripe Billing.
  3. Enter your secret key.
  4. Click Add Integration.

Once connected, the Stripe Billing integration is marked Active.

The Altruon dashboard listing the Chargebee, Recurly and Stripe Billing connections, each with the status Active and a Go to Backoffice link
Altruon: the Stripe Billing connection is 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.

  1. In Altruon, go to Settings > Billing Platforms and click View Integration on Stripe Billing.

  2. Copy the Webhook Endpoint URL that Altruon generated.

    The Integration Details dialog for Stripe Billing in Altruon, with status Active, a masked SecretKey and the Webhook Endpoint field
    Altruon: Integration Details for Stripe Billing
  3. Sign in to the Stripe Dashboard and go to Developers > Webhooks.

  4. Click + Add destination.

  5. Select these event types:

    • invoice.created
    • invoice.finalized
    • invoice.paid
    • customer.subscription.created
    • customer.subscription.deleted
    • customer.subscription.updated
    • customer.subscription.paused
    • customer.subscription.resumed
  6. Click Continue.

  7. Set the Destination type to Webhook endpoint and click Continue.

  8. Paste the Altruon webhook URL into the Endpoint URL field.

  9. Give the destination a descriptive name, for example "Altruon webhook".

  10. Click Create destination.

The Webhooks tab of the Stripe Workbench in a sandbox, with the Add destination button and one active event destination that points to an Altruon webhook URL
Stripe: Developers > Webhooks, with the Altruon destination

Test the connection

  1. Open Settings > Billing Platforms. Stripe Billing is listed as Active.
  2. With an acquirer connected and a routing entry in place, take a test payment in sandbox for a Stripe Billing price. See Testing.
  3. 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.* and customer.subscription.* events on this destination only.
  • Trials. The trial length comes from your catalog, for example trial_period_days on the Stripe Price. See Trials.

Next steps