Stripe
Connect Stripe to Altruon as an acquirer to take card payments, with one secret key and a webhook destination. Separate from Stripe Billing.
Connect your Stripe account as an acquirer to take credit and debit card payments through Altruon, while your billing platform stays the source of truth for subscriptions and invoices.
This connection is separate from Stripe Billing. Use this page when Stripe should charge the card. Use Stripe Billing when Stripe should own the subscription and the invoice.

- Payment methods
- Cards (credit and debit)
- What you need
- One secret key (
sk_...) or restricted key (rk_...) - Webhook
- Manual. You add an event destination in Stripe with 18 payment, setup, refund and dispute events.
- Trials
- Stripe is not in the list of supported trial pairs. See Trials.
- Good to know
- Card payments only. The webhook and the key must be in the same Stripe mode.
Before you start
- Altruon backoffice accessYou can sign in to the environment you are connecting. See Sandbox and environments.
- A Stripe accountYour own account, with access to Developers > API keys and Developers > Webhooks in the Stripe Dashboard.
- Raw card data allowed, if you use the Altruon VaultWith the Altruon Vault, Altruon sends the card number in the request to Stripe. The API credentials you connect must be allowed to send raw card data. If you are not sure, confirm with your point of contact at Stripe. Once Stripe has confirmed it, turn on Raw card data on the connection, so Dynamic routing can send cards there.
- A restricted key has the right permissionsIf you use a restricted key, it must read and write Customers, PaymentIntents, SetupIntents and Refunds.
Get your Stripe secret key
- Open the API keys page of the Stripe Dashboard: sandbox API keys or live API keys. In the Dashboard, the page is under Developers > API keys.
- Copy the Secret key.
The key must start with sk_ or rk_.
| Key | Looks like | Requirement |
|---|---|---|
| Secret key | sk_test_... in a sandbox, sk_live_... in live mode | None |
| Restricted key | rk_test_... or rk_live_... | Must be allowed to read and write Customers, PaymentIntents, SetupIntents and Refunds |
Use a test key with the sandbox Dashboard, and a live key with the live Dashboard. The webhook you create later has to be in the same mode as the key.
Copy the key when you create it
Stripe shows a secret key in full only when it is created. Copy it before you leave the page.
Connect Stripe in Altruon
- Sign in to Altruon and go to Settings > Payment Gateways.
- Click + Add Integration and select Stripe.
- Enter your secret key.
- Click Add Integration.
Altruon checks the key by listing one PaymentIntent. If the connection succeeds, the Stripe integration is marked Active.
Set up the webhook
Altruon needs a webhook from Stripe so that card payments, saved cards and refunds stay in sync. This is not the Stripe Billing webhook: billing events and payment events go to different Altruon endpoints.
-
In Altruon, go to Settings > Payment Gateways and click View Integration on Stripe.
-
Copy the Webhook Endpoint URL. Paste the URL from Altruon, do not build it yourself. It looks like this:
Environment Webhook URL Sandbox https://{your-domain}.webhook.sandbox.altruon.io/webhooks/gateways/stripe/{connectionId}Production https://{your-domain}.webhook.altruon.io/webhooks/gateways/stripe/{connectionId} -
Sign in to the Stripe Dashboard in the same mode as the secret key.
-
Go to Developers > Webhooks.
-
Click + Add destination.
-
Under Events from, choose Your account.
-
Select these events:
Group Events Payments payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceled,payment_intent.processing,payment_intent.requires_actionSetup (saving a card, including a trial or an added payment method) setup_intent.succeeded,setup_intent.setup_failed,setup_intent.canceled,setup_intent.requires_actionRefunds refund.created,refund.updated,refund.failed,charge.refund.updatedDisputes charge.dispute.created,charge.dispute.updated,charge.dispute.closed,charge.dispute.funds_withdrawn,charge.dispute.funds_reinstated -
Click Continue.
-
Set the Destination type to Webhook endpoint and click Continue.
-
Paste the Altruon webhook URL into Endpoint URL.
-
Name the destination
Altruon payments. -
Click Create destination.
Keep the two Stripe destinations apart
Do not add these payment events to the Stripe Billing destination, and do not point this destination at the billing webhook URL. invoice.* and customer.subscription.* belong on Stripe Billing. The events above belong on this endpoint.
Add a routing entry
A routing entry sends card payments in one currency to Stripe.
- Go to Settings > Payment Gateways and open the Routing tab.
- Click + Add entry.
- Select Card as the Payment Method, the Currency, and Stripe as the Payment Gateway.
- Click Add Entry.
Add one entry for each currency you process with Stripe.
Test the connection
- Open Settings > Payment Gateways. Stripe is listed as Active.
- With a billing platform connected, take a card payment in sandbox. See Testing.
- Check the result: the transaction is recorded in Altruon with the Stripe transaction ID, the subscription exists on your billing platform, and its invoice is marked paid.
Notes and limits
- Cards only. Stripe is currently enabled for card payments only in Altruon.
- Two Stripe connections, two webhooks. Stripe as an acquirer and Stripe Billing are separate connections. Each has its own Altruon webhook URL and its own event list.
- The webhook URL is yours alone. It contains your Altruon domain and the ID of this connection, and it differs between sandbox and production.
- Same mode everywhere. A test key goes with a webhook destination in the Stripe sandbox, a live key with a destination in live mode.
- Trials. Stripe is not in the list of supported acquirer and payment method pairs for trials. A trial with nothing due today on an unsupported pair returns an error when the session is created.