
To let customers pay your invoices online (by card, UPI, net banking or wallet), connect a payment gateway to AiEngage CRM. Two gateways are supported, and you can connect one or both:
Gateway | Best for | Customers can pay with |
|---|---|---|
Stripe | Businesses selling worldwide | Cards and the other methods Stripe supports. |
Razorpay | Businesses in India | UPI, credit and debit cards, net banking, wallets and more. |
Once a gateway is connected, every invoice’s pay page (opened from the View & Pay Invoice button in the email, or from Copy Invoice Link) shows a Pay button. The money goes straight to your own Stripe or Razorpay account; AiEngage CRM never holds it. The gateway then tells the CRM about each payment through a webhook, so the invoice’s payments stay up to date by themselves.
You will:
Open Payment Gateways and check your currency (Step 1).
Add Stripe: keys, webhook and signing secret (Steps 2–5).
Add Razorpay the same way (Step 6).
Check, enable and edit a connected gateway (Step 7).
Test, then switch to Live (Step 8).
Before you start:
You need a Stripe and/or Razorpay account, and permission to change settings in the CRM (usually an administrator).
Use Test mode keys first (Stripe pk_test_… / sk_test_…, Razorpay rzp_test_…). Nothing real is charged in Test mode.
Keep a second browser tab open on your Stripe or Razorpay dashboard: you’ll copy values between the two.
Click the Setup (gear) icon at the bottom of the left rail. In the Setup menu, under Sales & Finance, click Payment Gateways.

What this screenshot shows. The Setup menu with Payment Gateways ringed.
It sits in the Sales & Finance group, next to Document Templates (where you design the invoice PDF).
The page title reads Payment Gateways — Connect Stripe or Razorpay to collect invoice payments online.

What this screenshot shows. The Organization currency card at the top of the page.
Gateways charge customers in this currency, here INR (₹). It is also used on all your records, quotes, invoices, reports and PDFs.
To change it, use the Settings → Organization link in the card. See Set Your Home Currency. Set it before you start taking payments.

What this screenshot shows. The page before any gateway is connected.
“No payment gateway connected yet. Connect Stripe or Razorpay to start collecting invoice payments online.”
Click Add a payment provider to begin.

What this screenshot shows. The Add a payment provider window.
Gateway: two cards, Stripe (Accept card payments worldwide) and Razorpay (Accept UPI, cards and netbanking). The selected one has an orange outline and a tick. We start with Stripe.
Mode: Test or Live (next screenshot).
Below: the key fields, the webhook box and the secret field. The window scrolls, and each part is explained in the next steps.
Cancel closes without saving; Add a payment provider connects the gateway.

What this screenshot shows. The Mode drop-down.
Test: uses your gateway’s test keys. Payments are simulated and no money moves. Start here.
Live: uses your live keys and takes real payments. Switch only after a successful test (Step 8).
The keys you enter must match the mode: test keys for Test, live keys for Live.
In Stripe, open Developers → API keys. Copy the Publishable key and the Secret key into the CRM.

What this screenshot shows. The two key fields, filled with example test keys.
Publishable Key: starts with pk_test_ (or pk_live_ in Live mode). It identifies your Stripe account on the pay page.
Secret Key: starts with sk_test_ / sk_live_. The CRM uses it to create payments. It is hidden as dots; click the eye icon to check what you pasted.
Both are required. If either is empty, the window says “Enter your Publishable Key and Secret Key.”
The webhook is how Stripe tells the CRM that a payment succeeded, failed or was refunded. Scroll down in the window to Step 1 — create the webhook in Stripe.

What this screenshot shows. The webhook box in the window.
The long address (blurred here) is your organisation’s own webhook URL. Click the copy icon on its right to copy it.
The events to send: payment_intent.succeeded, charge.succeeded, charge.refunded, payment_intent.payment_failed, payment_intent.canceled.
Click Setup guide — step by step for instructions (next screenshot).

What this screenshot shows. The Stripe Setup guide, opened.
1. In the Stripe Dashboard, open Developers → Webhooks and click Add endpoint (newer Stripe screens: Add destination).
2. Paste the Endpoint URL you copied into the URL field.
3. Under Select events, add the five events listed above.
4. Click Add endpoint / Create destination.
5. Open the new endpoint, click Reveal under Signing secret and copy it (it starts with whsec_).
6. Back in the CRM, enter the keys and the Signing Secret, then click Add a payment provider.

What this screenshot shows. The Signing Secret field and the buttons at the bottom.
Signing Secret: paste the whsec_… value from Stripe. The CRM uses it to check that webhook messages really come from Stripe.
The note below reminds you where each value is in Stripe: API keys under Developers → API keys, the signing secret under Developers → Webhooks.
Click Add a payment provider. You’ll see “Stripe connected” and Stripe appears on the page.
To offer Razorpay as well, click Add a payment provider again. The window now says it is added alongside your existing one — nothing is replaced, and only Razorpay is offered.

What this screenshot shows. The window for Razorpay.
Gateway: Razorpay, selected.
Mode: Test to start.
Key ID: starts with rzp_test_ (or rzp_live_). In the Razorpay Dashboard, find it under Account & Settings → API Keys (click Generate Key if you don’t have one).
Secret Key: the Key Secret shown with the Key ID. Razorpay shows it only once, so copy it straight away.

What this screenshot shows. The Razorpay Setup guide.
1. In the Razorpay Dashboard, open Settings → Webhooks and click Add New Webhook.
2. Paste the Webhook URL from the CRM into the URL field.
3. In Secret, type any strong random text and keep a copy. Razorpay doesn’t create one for you; you’ll paste the same text into the CRM as the Webhook Secret.
4. Under Active Events, select payment.captured, payment.failed and refund.processed.
5. Click Create Webhook.
6. Back in the CRM, enter the Key ID, Key Secret and Webhook Secret, then click Add a payment provider (“Razorpay connected”).

What this screenshot shows. Both gateways on the Payment Gateways page.
A green dot and the Connected badge mean the gateway is set up and switched on. An amber dot with Disabled means it is switched off or missing keys.
Under each name: the mode and whether a webhook secret is saved, e.g. Test mode · Webhook secret set. If it says No webhook secret, finish Step 4 or 6.
Configure opens the gateway’s settings (below).

What this screenshot shows. The Enable Stripe switch.
“When enabled, invoices can be paid online through Stripe.”
Switch it off to pause Stripe on pay pages without deleting your keys (“Stripe disabled”); switch it on again any time (“Stripe enabled”).

What this screenshot shows. The Webhook URL card.
Your webhook address (blurred here) with a copy button (“Webhook URL copied to clipboard.”).
The events to subscribe to in your Stripe dashboard. Come back here if you ever need to set up the webhook again.

What this screenshot shows. The Credentials card.
Mode: switch between Test and Live (Step 8).
Minimum amount: the smallest balance a customer can pay online through this gateway. Leave it blank for the gateway’s own minimum (Stripe needs about $0.50 equivalent). On the pay page, a gateway below its minimum shows Min ₹… and can’t be chosen.
Publishable Key is shown; Secret Key and Signing Secret show •••• saved. “Leave a secret blank to keep the value you already saved.” Type a new value only to replace it.
Click Save after any change (“Stripe settings saved”).
With the gateway in Test mode, create a small invoice to yourself and open its pay page (⋯ → Pay Now on the invoice).
Pay with a test card or test UPI from your gateway’s documentation.
Check that the pay page shows Payment Successful and that the payment appears in Sales → Payments.
In Configure → Credentials, change Mode to Live, paste your live keys (and the live webhook’s secret, since Stripe and Razorpay keep separate test and live webhooks), and click Save.

What this screenshot shows. What your customers see once a gateway is connected.
Choose a payment method lists each connected and enabled gateway.
Pay ₹… pays the balance due. See Getting Paid on Invoices.

What this screenshot shows. The Disconnect Stripe card at the bottom of Configure.
“Removes the stored credentials and stops collecting payments through Stripe. You can reconnect any time with your keys.”
To pause Stripe without removing the keys, use the Enable switch instead.

What this screenshot shows. The confirmation window.
“Invoices can no longer be paid through Stripe until you reconnect. Its stored credentials will be removed.”
Disconnect confirms (“Stripe disconnected”); Cancel keeps it.
Payments already received are not affected.
Problem | What to do |
|---|---|
“Enter your Publishable Key and Secret Key.” / “Enter your Key ID and Secret Key.” | Both keys are required. Copy them again from your gateway dashboard. |
“Could not connect Stripe” (or Razorpay). | Check the keys match the chosen Mode (test keys in Test, live keys in Live) and that nothing extra was copied, such as spaces. |
The pay page says online payment isn’t available. | No gateway is connected and enabled. Check the green dot and the Enable switch. |
Customers paid, but the payment doesn’t show in the CRM. | The webhook is missing or wrong: check the URL, the events, and that the Signing Secret / Webhook Secret in the CRM matches the gateway. |
A gateway button on the pay page shows “Min ₹…”. | The balance is below that gateway’s minimum. Lower the Minimum amount in Credentials, or let the customer use another method. |
The status line says “No webhook secret”. | Create the webhook (Step 4 / 6) and paste its secret in Configure → Credentials → Save. |
Can I use Stripe and Razorpay together?
Yes. Customers see both on the pay page and choose one.
Does AiEngage CRM take a cut or hold my money?
No. Payments go directly into your Stripe or Razorpay account; your gateway’s own fees apply.
Which currency is charged?
Your organisation currency, shown at the top of the Payment Gateways page.
Can I see my secret key again?
No. Secrets are encrypted and never shown again. To change one, type the new value in Credentials and Save.
What happens next?
Send invoices and get paid: Create and Manage Invoices, Getting Paid on Invoices and Invoice Actions Explained.
Previous: Managing Your Products Catalogue
OpenAI Engage and apply what you just learned to your own workspace.
Open AI Engage CRM