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

# Overview

> Connect Fluxrate to your payment gateway and collect payments directly from your invoices.

Fluxrate connects with leading payment gateways so you can collect payments without leaving the billing workflow. Once an invoice is finalized, Fluxrate automatically generates a payment link using your connected gateway your customers can pay with one click.

## How It Works

```mermaid theme={null}
sequenceDiagram
    participant F as Fluxrate
    participant G as Payment Gateway
    participant C as Customer

    F->>F: Invoice finalized
    F->>G: Create Payment Link (with invoice_id in metadata)
    G-->>F: Payment link URL
    F->>C: Email invoice with payment link
    C->>G: Customer pays
    G->>F: Webhook: payment.captured / checkout.session.completed
    F->>F: Invoice marked as PAID
```

1. **Connect** your payment gateway from **Dashboard > Integrations**.
2. **Finalize** an invoice Fluxrate creates a payment link automatically.
3. **Customer pays** via the link. The gateway fires a webhook to Fluxrate.
4. **Invoice is marked paid** automatically when the webhook is received and verified.

## Available Integrations

<CardGroup cols={2}>
  <Card title="Stripe" icon="stripe" href="/integrations/stripe">
    Accept cards, Apple Pay, Google Pay, and more. Best for global businesses.
  </Card>

  <Card title="Razorpay" icon="credit-card" href="/integrations/razorpay">
    Accept UPI, cards, net banking, and wallets. Built for Indian businesses.
  </Card>
</CardGroup>

## Coming Soon

| Integration   | Description                               | Status      |
| ------------- | ----------------------------------------- | ----------- |
| **Chargebee** | Subscription billing & revenue management | Coming Soon |
| **Paddle**    | Global payments & merchant of record      | Coming Soon |

## Security

All payment gateway credentials are **encrypted at rest** using Fernet symmetric encryption before being stored in the database. Webhook signatures are **verified on every incoming event** Fluxrate will reject any request that fails signature validation.

<Note>
  Credentials are write-only. Once saved, Fluxrate will never return your secret keys through the API  only whether credentials are present (`has_credentials: true`).
</Note>
