4
Calls from mount to subscription
1
Session per checkout
2
Keys, the secret one stays server-side
SKILL.md
Docs written for AI agents
What you get
Your front end. The payment flow is ours.
Card data goes into secure fields and never touches your servers. Your code decides what the page looks like and what happens after the payment.
Styled with your CSS variables
Match your fonts, colors and spacing. The component renders inside your page, in the element you choose.
Same session model as hosted pages
Altruon.js and hosted pages share one flow, so you can run both on one site: the SDK in your funnel, a hosted link in your emails.
3D Secure handed back by callback
When a payment needs a challenge or a redirect, Altruon runs it and returns the result to your page through a callback.
Separate sandbox and production
Build and test in the sandbox, then go live in production. Test and live run in separate environments.
Signed webhooks
HMAC-signed, up to 2 endpoints, retried up to 4 times. Payloads are thin, so you fetch the current state through the API.
Docs for people and AI agents
docs.altruon.io includes a SKILL.md file written for AI coding agents, so your agent works from the same reference as your team.
How it fits together
From session to subscription in four steps
01
Create a session on your server
Call the session endpoint with your secret key, the currency, the plan and your billing platform. Sessions are single-use and last 15 minutes.
02
Mount the component
In the browser, init with your publishable key, set the session and render the component into your page.
03
Process payment and subscription
One call charges the payment method, creates the subscription on your billing engine and marks the first invoice paid.
04
Listen to signed webhooks
Verify the Altruon-Signature header, then fetch the current state of the object through the API.
Webhook events
Know when it happened, then ask for the state
Every event carries an HMAC signature in the Altruon-Signature header. Register up to 2 endpoints. Failed deliveries are retried up to 4 times.
All events in the docsMore in Connect