# Better Auth Razorpay > A Better Auth plugin that bridges Razorpay's subscription and payment APIs with Better Auth's authentication and database layer. - [Introduction](https://better-auth-razorpay.amankushwaha.dev/index.md): Better Auth Razorpay is a plugin that adds Razorpay payments, subscriptions, and billing to your Better Auth application. - [Quickstart](https://better-auth-razorpay.amankushwaha.dev/quickstart.md): Get your first Razorpay payment working end to end with Better Auth in a few steps. - [Installation](https://better-auth-razorpay.amankushwaha.dev/installation.md): Install the Better Auth Razorpay plugin, set up environment variables, and configure your server and database. - [Client setup](https://better-auth-razorpay.amankushwaha.dev/client-setup.md): Configure the Razorpay client plugin, call endpoints from your frontend, and handle errors. - [Plugin options](https://better-auth-razorpay.amankushwaha.dev/configuration/plugin-options.md): Complete reference for every option accepted by the Razorpay plugin in your Better Auth server config. - [Subscription plans](https://better-auth-razorpay.amankushwaha.dev/configuration/subscription-plans.md): Configure Razorpay plans, trials, billing cycles, and subscription lifecycle callbacks inside the Razorpay plugin. - [Organizations](https://better-auth-razorpay.amankushwaha.dev/configuration/organizations.md): Enable organization-level subscriptions and customer management with the Better Auth organization plugin. - [Database schema](https://better-auth-razorpay.amankushwaha.dev/configuration/database-schema.md): Tables and fields added by the Razorpay plugin, migration commands, and how to customize them. - [One-time payments](https://better-auth-razorpay.amankushwaha.dev/guides/one-time-payments.md): Create orders, collect payments with Razorpay Checkout, verify signatures, and fulfill purchases securely using webhooks. - [Manual capture](https://better-auth-razorpay.amankushwaha.dev/guides/manual-capture.md): Hold authorized funds and capture payments manually after verifying inventory or business rules. - [Refunds](https://better-auth-razorpay.amankushwaha.dev/guides/refunds.md): Process full and partial refunds, list and edit refunds, and react to refund webhooks with React hooks. - [Marketplace transfers](https://better-auth-razorpay.amankushwaha.dev/guides/marketplace-transfers.md): Split payments across linked accounts using Razorpay Route, hold settlements, edit transfers, and reverse them when needed. - [Subscriptions](https://better-auth-razorpay.amankushwaha.dev/guides/subscriptions.md): Enable and manage Razorpay subscriptions with the better-auth-razorpay plugin, including plan upgrades, lifecycle management, and feature gating. - [Free trials](https://better-auth-razorpay.amankushwaha.dev/guides/free-trials.md): Configure time-limited free trials for Razorpay subscriptions and handle trial lifecycle callbacks with the better-auth-razorpay plugin. - [Seat-based billing](https://better-auth-razorpay.amankushwaha.dev/guides/seat-based-billing.md): Charge per seat by using plan quantity, updating subscription seats, and syncing organization member counts automatically with better-auth-razorpay. - [Subscription links and offers](https://better-auth-razorpay.amankushwaha.dev/guides/subscription-links-and-offers.md): Create Razorpay subscription links, manage offers and pending updates, attach add-ons, and fetch subscription invoices with better-auth-razorpay. - [Plans](https://better-auth-razorpay.amankushwaha.dev/guides/plans.md): Create, list, and fetch Razorpay plans, then use them in the better-auth-razorpay plugin configuration and React hooks. - [Invoices](https://better-auth-razorpay.amankushwaha.dev/guides/invoices.md): Create, manage, and track Razorpay invoices and payment links with the Better Auth plugin. - [Customers](https://better-auth-razorpay.amankushwaha.dev/guides/customers.md): Manage Razorpay customers automatically on sign-up or manually through the Better Auth plugin. - [Items and add-ons](https://better-auth-razorpay.amankushwaha.dev/guides/items-and-addons.md): Create and manage Razorpay items and subscription add-ons with the Better Auth plugin. - [Webhooks](https://better-auth-razorpay.amankushwaha.dev/guides/webhooks.md): Receive Razorpay events, verify their signatures, and react to payments, refunds, invoices, and subscriptions with typed callbacks. - [Webhook events](https://better-auth-razorpay.amankushwaha.dev/reference/webhook-events.md): Complete list of Razorpay webhook events handled by the plugin, their callbacks, and what the plugin does for each event. - [React hooks overview](https://better-auth-razorpay.amankushwaha.dev/react/overview.md): Set up TanStack Query and the Better Auth Razorpay React hooks in your client application. - [Subscription hooks](https://better-auth-razorpay.amankushwaha.dev/react/subscription-hooks.md): Query and mutate subscriptions with TanStack Query hooks for listing, upgrading, cancelling, pausing, resuming, and restoring. - [useSubscriptionStatus](https://better-auth-razorpay.amankushwaha.dev/react/subscription-status.md): Derive UI-friendly boolean flags from a subscription object with the useSubscriptionStatus helper. - [Resource hooks](https://better-auth-razorpay.amankushwaha.dev/react/resource-hooks.md): Query and mutate Razorpay payments, orders, refunds, invoices, items, add-ons, customers, and transfers with TanStack Query hooks. - [Types](https://better-auth-razorpay.amankushwaha.dev/reference/types.md): TypeScript type signatures for plugin options, subscription configuration, plans, and verification responses. - [Error codes](https://better-auth-razorpay.amankushwaha.dev/reference/error-codes.md): Complete reference of error codes thrown by the plugin, grouped by feature area, with meaning and the endpoints that raise them. - [Signature utilities](https://better-auth-razorpay.amankushwaha.dev/reference/signature-utilities.md): Server-side utilities for creating and verifying Razorpay payment and webhook signatures using HMAC-SHA256. - [Contributing](https://better-auth-razorpay.amankushwaha.dev/reference/development.md): Local development setup, project structure, tests, build, and publishing workflow for the better-auth-razorpay plugin. - [API overview](https://better-auth-razorpay.amankushwaha.dev/api-reference/overview.md): Base path, authentication, pagination, error format, and endpoint groups for the better-auth-razorpay plugin. - [Orders](https://better-auth-razorpay.amankushwaha.dev/api-reference/orders.md): Create, retrieve, edit, list, and verify Razorpay orders through the plugin endpoints. - [Payments](https://better-auth-razorpay.amankushwaha.dev/api-reference/payments.md): Retrieve, list, edit, and capture Razorpay payments through the plugin endpoints. - [Refunds](https://better-auth-razorpay.amankushwaha.dev/api-reference/refunds.md): Refund payments and manage refund records through the plugin endpoints. - [Transfers](https://better-auth-razorpay.amankushwaha.dev/api-reference/transfers.md): Create and manage Razorpay Route transfers between linked accounts through the plugin endpoints. - [Subscriptions](https://better-auth-razorpay.amankushwaha.dev/api-reference/subscriptions.md): Manage subscription lifecycles through the plugin endpoints. - [Razorpay subscriptions](https://better-auth-razorpay.amankushwaha.dev/api-reference/razorpay-subscriptions.md): Interact directly with Razorpay subscription objects, hosted links, pending updates, invoices, offers, and add-ons. - [Plans](https://better-auth-razorpay.amankushwaha.dev/api-reference/plans.md): Create, list, and retrieve Razorpay plans through the plugin endpoints. - [Invoices](https://better-auth-razorpay.amankushwaha.dev/api-reference/invoices.md): Create, retrieve, list, edit, issue, delete, cancel, and notify Razorpay invoices through the plugin endpoints. - [Customers](https://better-auth-razorpay.amankushwaha.dev/api-reference/customers.md): Create, retrieve, list, edit, and manage Razorpay customers and their bank accounts and tokens through the plugin endpoints. - [Items](https://better-auth-razorpay.amankushwaha.dev/api-reference/items.md): Create, retrieve, list, edit, and delete Razorpay items through the plugin endpoints. - [Add-ons](https://better-auth-razorpay.amankushwaha.dev/api-reference/addons.md): Retrieve, list, and delete Razorpay add-ons through the plugin endpoints. - [Webhook endpoint](https://better-auth-razorpay.amankushwaha.dev/api-reference/webhook.md): Receive, verify, and handle Razorpay webhook events through the plugin endpoint. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.