> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trymaven.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Collect credit card payments securely — over voice or inside your chatbot — with Maven

Maven is payment infrastructure for AI applications. Collect credit card payments securely over voice calls **or** inside a chatbot, using any major payment gateway.

> [card] Voice Payments
>
> Collect card details via natural speech over phone calls.

> [card] Chat Payments
>
> Embed a secure card form inside your chatbot or web app.

> [card] Any Gateway
>
> Stripe, Authorize.net, Braintree, Shift4, or Fiserv — same API.

## Two ways to collect

> [tab] Voice
>
> **1. Create a session**
>
> Your server calls the Maven API with the customer's phone number, amount, and payment mode.
>
> **2. Transfer the caller**
>
> Your voice AI agent transfers the caller to Maven's secure payment line.
>
> **3. Card details collected**
>
> Maven's voice agent guides the caller through reading their card number, expiry, and CVV.
>
> **4. Payment processed**
>
> Card details are tokenized through VGS and the payment is processed through your gateway.
>
> **5. Get the result**
>
> Receive a webhook with the payment status and gateway details.

> [tab] Chat / Web
>
> **1. Create a session**
>
> Your server calls `POST /v1/widget-sessions` with the amount and gateway.
>
> **2. Mount the widget**
>
> `Maven.createPayment({ sessionId }).mount("#slot")` — the card form appears inline.
>
> **3. Customer pays**
>
> Card data goes browser → Maven iframe → VGS → gateway. Your page never touches it.
>
> **4. Callbacks fire**
>
> `onSuccess({ transaction_id, card_brand, card_last4 })` on your page, plus a webhook to your server.

## Supported Gateways

| Gateway | Charge | Tokenize | Voice | Chat |
| - | - | - | - | - |
| **Stripe** | ✓ | ✓ | ✓ | ✓ |
| **Authorize.net** | ✓ | ✓ | ✓ | ✓ |
| **Braintree** | ✓ | ✓ | ✓ | ✓ |
| **Shift4** | ✓ | ✓ | ✓ | ✓ |
| **Fiserv** | ✓ | ✓ | ✓ | ✓ |

## Security

Your server never touches card data in either flow — Maven handles tokenization and the gateway call. See [Chat Widget Overview](https://docs.trymaven.com/widget/overview.md) or [Voice Overview](https://docs.trymaven.com/quickstart.md) for the full data-flow diagram.

## Next Steps

> [card] [Voice Quickstart](https://docs.trymaven.com/quickstart.md)
>
> Collect your first voice payment.

> [card] [Chat Widget Quickstart](https://docs.trymaven.com/widget/quickstart.md)
>
> Embed the widget in your chatbot.

> [card] [API Reference](https://docs.trymaven.com/api-reference/overview.md)
>
> Full endpoint docs with an interactive playground.

> [card] [Webhooks](https://docs.trymaven.com/integrations/webhooks.md)
>
> Server-side payment notifications.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.