Skip to main content

Commerce & payments

Razorpay in Core Forms

Collect UPI, card, netbanking and wallet payments through Razorpay Payment Links.

Bundled with Core Forms, the WordPress forms plugin with every premium feature in the box. No add-on tax.

Bundled, no add-on tax Unlimited sites Use code BLACKFRIDAY for 40% off either plan. Ends December 2 (IST).

A WordPress Razorpay payment form built with Core Forms creates a Razorpay Payment Link on submit and sends the buyer to Razorpay's hosted page for UPI, cards, netbanking, or wallets. You paste test and live Key Id and Key Secret pairs plus one webhook secret, then enable payment on each form that should charge.

Razorpay is the default payments rail for Indian merchants. Core Forms creates a Razorpay Payment Link on submit and sends the buyer to that hosted checkout. The submission stays pending until Razorpay's signed webhook confirms the payment, and only then do your form actions run.

Razorpay at a glance

Razorpay API
Payment Links hosted checkout
Methods
UPI, cards, netbanking, wallets
Test mode
Razorpay test keys
Credentials
Key Id + Key Secret per mode
Webhook secret
One, shared by both modes
Webhook
/wp-json/cf/v1/payments/razorpay/webhook

Full reference: Razorpay setup and events

What you get

How Razorpay works in Core Forms

Hosted Payment Links

The buyer pays on Razorpay's hosted page, so no card form or payment script runs on your site.

Webhook-verified

The webhook signature is checked before the submission is marked paid. Events cover paid, cancelled, captured, failed and refunded payments.

Test + live keys

Toggle modes globally; both key sets stay configured.

Use cases

What people build with Razorpay and Core Forms

Course or coaching fees

Collect student details and the fee in one form. Enrollment emails wait until Razorpay confirms the payment.

Event registration with UPI

Attendees pay from their UPI app on Razorpay's page, and the registration only counts once the webhook marks it paid.

INR sales in Core Commerce

Core Commerce routes INR to Razorpay by default, so rupee plans show Razorpay at checkout without extra routing work.

Paid consultation bookings

Set a fixed booking fee, collect the brief, and notify your team only after the money has landed.

Set it up

Connect Razorpay in 3 minutes

  1. 1

    Generate API keys

    Razorpay Dashboard → Account & Settings → API Keys, both Test and Live.

  2. 2

    Configure in Core Forms

    Core Forms → Settings → Payments → Razorpay. Paste the test and live Key Id and Key Secret, then add the webhook URL in Razorpay and paste its secret back.

  3. 3

    Enable on a form

    Form → Payment tab → Razorpay. Set the amount and currency, save, and run a test-mode payment.

Every setting, filter, and error message is documented in the Razorpay setup and events.

Good to know

Requirements and limits

  • Subscribe the webhook to payment_link.paid, payment_link.cancelled, payment.captured, payment.failed, and refund.processed.
  • Razorpay uses separate key pairs for test and live but a single webhook secret, so paste that secret once.
  • The buyer always pays on Razorpay's hosted page; Stripe is the only gateway with an inline flow.
  • Currency is set per form on the Payment tab, so confirm it reads INR before you take live payments.
FAQ

Razorpay integration questions

Does the Razorpay form support UPI?
Yes. Buyers land on Razorpay's hosted Payment Link page, which offers UPI along with cards, netbanking, and wallets. Core Forms doesn't render any payment fields itself.
Do I enter the amount in rupees or paise?
In rupees. Write the amount in major units, like 499.00, or point it at a field. Core Forms stores it in minor units (paise) on the submission, and [CF_PAYMENT_AMOUNT] gives it back as a decimal for emails.
Why does the buyer leave my site to pay?
Core Forms uses Razorpay's Payment Links API, so the payment happens on a Razorpay-hosted page and the buyer returns afterward. The submission stays pending until the webhook confirms it, as described in the payments overview.
How are Razorpay refunds handled?
When Razorpay sends refund.processed, the submission moves to refunded. Make sure that event is ticked on the webhook or refunds won't show up in Core Forms.
Can I test Razorpay before going live?
Yes. Put Settings → Payments in Test mode and paste your Razorpay test keys. For local sites, expose the webhook URL with a tunnel such as ngrok, since Razorpay can't reach localhost.

Bundled with every Core Forms license.

Razorpay and every Core Forms-built integration on this site are included with your license. Use code BLACKFRIDAY for 40% off either plan. Ends December 2 (IST).

Black Friday Sale

40% off Core Forms

Forms, polls, surveys, payments, and licensing — every feature, unlimited sites, one plugin.

Copy your code

Those are the after-discount prices. Paste BLACKFRIDAY at checkout to apply it. BLACKFRIDAY40 works too.

Ends December 2 (IST)