VAPI Integration
Add PCI-compliant voice payments to your VAPI agent. When your agent needs to collect a payment, it calls Maven to create a session and transfers the caller to Maven’s secure payment line.How It Works
1
Agent triggers collect_payment
During a call, your VAPI agent calls the
collect_payment function with the amount and caller’s phone number.2
Maven creates a session
Maven creates a payment session and returns a phone number to transfer the caller to.
3
Agent transfers the caller
Your agent uses the
transfer_to_payment tool to transfer the caller to Maven’s secure payment line.4
Payment collected
Maven collects the card details, processes the payment, and sends a webhook with the result. The caller is optionally transferred back to your agent via the
callback number.Setup
Automatic (Dashboard)
The easiest way to set up is from the Maven Dashboard:1
Go to your app's Integrations tab
In the Maven Dashboard, navigate to your app and click Integrations.
2
Select VAPI
Enter your VAPI Private Key and Maven API key. Optionally provide a VAPI Assistant ID to auto-attach the tools.
3
Click Connect
Maven creates the following tools in your VAPI account:
collect_payment— creates a payment sessiontransfer_to_payment— transfers the caller to Maven’s payment lineget_session— looks up a session by phone numbercancel_session— cancels a pending session
Manual (Webhook URL)
If you prefer to configure the tools yourself, use a webhook URL:VAPI sends payloads in multiple formats (tool-calls, function-call, and API request). Maven auto-detects the format and handles all three.
