Prerequisites
- A running Deepgram Voice Agent behind your own audio bridge (Twilio media streams or similar).
- Your bridge’s telephony account (the number the call comes in on), and a Ringup API key.
Set up
- Using Dashboard
- Using Tools
Your bridge creates a Checkout Session and transfers the live call to it, like redirecting to a
hosted web checkout. Ringup takes payment on its own line and returns the caller if you ask it to.
The wiring is code in your bridge; only your account side (API keys, the webhook endpoint,
go-live) lives in the dashboard.
1
Recognize the caller at the greeting
Call
identify from your bridge at the greeting, not at payment (plain HTTP, like the checkout
call below). The caller’s number arrives the instant the call connects; for a returning caller
identify returns their name, so your agent greets them by name. Chargeable cards come later,
from the Checkout Session. See Recognize at the start of the call.2
Create a Checkout Session when the order is confirmed
When the agent signals the order is confirmed (for example via a Deepgram function call your bridge
handles),
POST to create_checkout with your Ringup API key. If
payment_required is none, do not transfer: finish the call normally. Otherwise transfer to the
returned transfer_to.3
Transfer on your bridge
Have your agent speak one bridge line (an
InjectAgentMessage such as “One moment, connecting you
to secure payment”), then transfer the caller on your telephony. On Twilio, redirect the call to
TwiML that dials the Ringup SIP URI, carrying the checkout_session_id:4
Register your webhook endpoint
In the Ringup dashboard, under Webhooks, add your HTTPS endpoint and copy the
signing secret. Your code verifies the signature and handles
checkout.succeeded. See
Webhooks.5
Test it, then go live
Use your
rk_test_ key, call your agent from your own phone, and order: on your first call you
are texted a link and pay with the test card 4111 1111 1111 1111 (any future expiry, any CVC);
on the next call the payment line recognizes you and charges the saved Visa ending 1111. Expect
the payment line to read a confirmation code and a test-mode checkout.succeeded at your
endpoint. Swap in your rk_live_ key to go live.Next steps
Testing
Test mode, the test card, and the flow to run a full payment.
Webhooks
Reconcile every payment from one signed event on your server.