Authorization header on each call:
Secret keys
Create one in your Ringup dashboard, under API Keys. Keys come in two kinds, and the same code works with either, so you promote by swapping the key:- Test keys (
rk_test_...) run against test mode: the real API, no real money, every charge settling on Ringup’s test processor account. See Testing. - Live keys (
rk_live_...) run against your real merchants and settle on their own processor.
cs_test_… / cs_live_…), so a test object can never be read as a live one.
Pass it on every request
Every Ringup call,identify, create_checkout, charge, and the rest, takes the key as a
Bearer token:
- Hosted, from the dashboard: Ringup writes your key into the payment tools it provisions for you, so it rides every call without you handling it.
- In your agent (API): the key lives in the
Authorizationheader of the Ringup tools or HTTP calls your agent makes, next to the other tool config.
Publishable keys
A publishable key (pk_test_... / pk_live_...) identifies your account without authorizing
anything sensitive: it starts a merchant connection from the hosted
Connect button and nothing else. It is safe to embed in a page or
an email, and the dashboard shows it whenever you need it. It cannot read data or create charges,
so it needs none of the secret key’s handling rules.
Next steps
Testing
What test mode gives you and how to rehearse every flow.
How it works
The architecture, then the integration guide for your platform.