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

# Collecting and Recording Patient Payments in Prvaha

> Accept online payments via Razorpay, record offline cash, UPI, and card collections, and reconcile payment records in Prvaha's invoicing system.

Prvaha gives your clinic two ways to collect patient payments: online via Razorpay, or manually for cash, card, and UPI payments collected at the front desk. Both methods update the invoice status automatically so you always have an accurate picture of what has been collected.

<Note>
  Razorpay is Prvaha's supported online payment gateway. To enable it for your clinic, contact [Prvaha support](https://prvaha.com). Once enabled, the Razorpay checkout can be launched directly from any issued invoice.
</Note>

## Online payments via Razorpay

Prvaha integrates with Razorpay to let patients pay their bills digitally. When you initiate an online payment from an issued invoice, Prvaha creates a Razorpay order and opens the Razorpay checkout interface — the patient can then complete payment using any method Razorpay supports, including credit or debit card, UPI, net banking, or wallets.

<Steps>
  <Step title="Open the issued invoice">
    Go to **Dashboard → Invoices** and open the invoice. Confirm it has **Issued** status — only issued invoices can accept payment.
  </Step>

  <Step title="Initiate the Razorpay checkout">
    Click **Mark as Paid** to record that the patient has paid. For clinics with Razorpay enabled, the checkout widget opens so the patient can complete the transaction digitally.
  </Step>

  <Step title="Payment confirmation">
    Once Razorpay confirms the payment, Prvaha automatically marks the invoice as **Paid** and records the Razorpay order ID and payment ID against the invoice for cross-reference.
  </Step>
</Steps>

If a payment attempt does not complete, the invoice status changes to **Payment failed**. You can initiate another payment attempt from the same invoice — the previous failed attempt is logged and retained for your records.

## Recording offline payments

For patients who pay in person — with cash, a card swipe at reception, or a UPI transfer on the clinic's device — use **Mark as Paid** to record the payment manually so the invoice closes correctly.

<Steps>
  <Step title="Open the issued invoice">
    Go to **Dashboard → Invoices** and open the relevant invoice.
  </Step>

  <Step title="Mark as paid">
    Click **Mark as Paid**. Prvaha records the payment and immediately updates the invoice status to **Paid**.
  </Step>
</Steps>

<Warning>
  Once an invoice is marked as **Paid**, it cannot be reopened or edited. If you recorded a payment in error, you will need to cancel the invoice and raise a new one — contact your admin before doing so.
</Warning>

<Tip>
  For offline payments, note the payment method (cash, UPI, or card) in your clinic's own records or in the appointment notes so you can reconcile against your cash drawer or card machine at end of day.
</Tip>

## Payment history

Every payment transaction is stored and visible from the invoice detail page. To review payment history for a specific invoice:

1. Go to **Dashboard → Invoices** and open the invoice.
2. Scroll to the **Payments** section. Each entry shows the payment method, amount, date, and outcome — for example, whether the payment completed or failed.

For Razorpay transactions, the Razorpay order ID and payment ID are also stored, which you can use to cross-reference records in your Razorpay dashboard if needed.

## Reconciliation

To reconcile the day's collections, review your invoices filtered to **Paid** status in **Dashboard → Invoices**. Compare the total paid invoices against your cash drawer and any card machine settlement reports for the day.

If a discrepancy appears — for example, a cash payment was collected but not recorded in Prvaha — find the corresponding invoice and mark it as paid before closing the day. Keeping payment records current ensures your records accurately reflect the clinic's actual cash flow.
