Prerequisites
- A running Pipecat pipeline with telephony (a Twilio/Telnyx/Plivo/Exotel WebSocket serializer, or Daily PSTN/SIP dial-in).
- The telephony account that owns the inbound call leg, and a Ringup API key.
Set up
- Using Dashboard
- Using Tools
Your pipeline 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 pipeline; 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 pipeline 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
Register a function on your LLM (
FunctionSchema) that the model calls once the order is confirmed,
and in its handler POST to Ringup with your 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 transport
Have the agent speak one short bridge line (“One moment, connecting you to secure payment”), then
transfer the caller on your telephony. On a Twilio transport, redirect the call to TwiML that dials
the Ringup SIP URI, carrying the On Daily PSTN/SIP, use the equivalent SIP transfer to the same URI.
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.