Skip to main content

Payment Processing

The Payment Processing tool lets your voice agent collect payments from callers during a live call. Payments are processed through your configured provider (Stripe or custom) with PCI compliance — recording is automatically paused during card collection if enabled.

How It Works

Configuration

LLM Tool

Tool name: collect_payment Process a payment from the caller.
Validations:
  • Amount must be greater than $0
  • Amount cannot exceed paymentMaxAmountCents
  • Insufficient funds or card errors return the configured failure message

Security

  • PCI Compliance: Card details are handled by the payment provider, never stored by thinnestAI
  • Recording Pause: When paymentPauseRecording is enabled, call recording stops during payment and resumes after
  • Card Safety: The agent never reads back the full card number — only confirms the last 4 digits

Example — Create Agent with Payment Processing