Charitable Documentation

Learn how to make the most of Charitable with clear, step-by-step instructions.

Charitable Razorpay

Charitable Razorpay lets your nonprofit accept donations through Razorpay, the leading Indian payment gateway, with built-in support for UPI and campaign QR codes. It is purpose-built for organizations serving Indian donors while still supporting international currencies for global campaigns.

Available as a free addon. Requires Charitable Pro 1.8.13.5 or later. The 1.0.0-beta-1 release is currently in beta exclusively to those who have the Charitable Pro (plugin) and the Pro plan, and your feedback during this period helps shape the general release.

Key Features

  • Accept Razorpay donations in live and test modes from a single settings panel
  • Offer UPI as a first-class payment method on the donation form for INR campaigns
  • Generate per-campaign QR codes that donors scan to give from any UPI app
  • Process recurring donations through the Charitable Recurring addon
  • Handle refunds directly from the Charitable donation record
  • Verify payments through Razorpay webhooks with HMAC signature checking
  • Brand the Razorpay popup with your own image and theme color
  • Support eight currencies: INR, USD, EUR, GBP, SGD, AED, CAD, AUD

Why Use Charitable Razorpay?

Razorpay is the dominant gateway for charities and donors in India, and UPI now drives the majority of digital donations there. With Charitable Razorpay, you can capture UPI gifts, scan-to-give QR donations, and credit and debit card payments without bolting on a third-party plugin or sending donors to an external checkout. Webhook-driven status updates mean your dashboard reflects the truth at Razorpay, even when a donor closes the browser before the redirect.

Requirements

  • Charitable Pro 1.8.13.5 or later
  • WordPress 6.2 or later
  • PHP 7.4 or later
  • A Razorpay merchant account (live and/or test mode)
  • For recurring donations: the Charitable Recurring addon

Getting Started

Activation

Upload and activate the Charitable Razorpay plugin from Plugins » Add New.

Go to Charitable » Settings » Payment Gateways.

Click Enable Gateway next to Razorpay. We recommend turning on test mode while you set this up. This will ensure that live transactions don’t go through while you aren’t ready for them.

Charitable enable payment gateway

When you activate the gateway, you’ll see a new Gateway Settings button. This takes you to the settings page where you can enter your API credentials. You can either use your live keys or test keys.

Test keys in Razorpay

Configuration

  1. In your Razorpay dashboard, generate API keys for live mode (and test mode if you want to test first).
  2. Paste the Live Key ID and Live Secret Key into the Razorpay settings tab in Charitable.
  3. In Razorpay, create a webhook pointing to the URL shown in the Webhook Secret help text on the same settings tab. Copy the webhook secret back into Charitable.
  4. Save settings. Submit a small test donation in test mode to confirm the round trip is healthy.

How donors see Razorpay on the donation form

On your campaign page, when a donor clicks to donate, they should now see Razorpay as an option in your donation form.

Razorpay on donation form

They can either add in their UPI ID on this form whcih will then be prefilled in the Razorpay payment form.

When a donor clicks the Donate button, Charitable opens the Razorpay popup with the donation amount, donor name and email pre-filled, and your branded image and theme color.

Cards, netbanking, wallet, Pay Later, and UPI options appear in the popup based on what is enabled in your Razorpay merchant account.

Razorpay gateway sample

QR codes on campaign pages

If you enable QR Code Generation, every published campaign gets a scannable QR code rendered on the campaign page (and a smaller version in the campaign sidebar layout). The QR encodes a UPI deep link to your merchant ID, with the campaign goal amount pre-filled when QR Code Amount Pre-fill is enabled. Donors can scan with any UPI app to send a gift directly to your account.

You can enable this in the same Charitable » Settings » Payment Gateways » Gateway Settings page for Razorpay.

QR-code-in-razorpay

That’s it! You’re all set to accept donations with Razorpay.

Viewing Razorpay Transactions in Charitable

Once donations come in through the Razorpay gateway, you can view them under Charitable » Donations. Here, you’ll see a list of donations along with the amount donated, campaign, date, and payment status. In the Amount Donated column, you’ll see the payment gateway used.

Razorpay donation records

You can choose to view or edit any record here. Inside, you’ll also see details of the Razorpay payment record

Razorpay donation record view

Below, we’ll discuss more configuraiton options available to you when you enable Razorpay.

Configuration Options Available for Razorpay

The Razorpay settings live at Charitable » Settings » Payment Gateways » Razorpay.

API & Webhook Credentials

SettingTypeDefaultDescription
Live Key IDtextYour Razorpay live merchant key ID.
Live Secret KeypasswordYour Razorpay live merchant secret key.
Test Key IDtextYour Razorpay test merchant key ID.
Test Secret KeypasswordYour Razorpay test merchant secret key. Used when Charitable test mode is on.
Webhook SecretpasswordThe shared secret you create in the Razorpay webhook configuration. Without it, payment confirmations and subscription updates are silently rejected.

Donor Experience

SettingTypeDefaultDescription
Popup ImageimageImage displayed at the top of the Razorpay popup. 80x80px recommended.
Popup Theme Colorcolor picker#2bc253Accent color used inside the Razorpay popup interface.
Phone FieldradioEnabledShow a phone number field on the donation form.
Phone Country Codeselect+1Default country code prepended to the phone field. Includes +1, +91, +44, +61, +65, +971, +33, +49, +81, +86.
Collect Billing DetailsradioDisabledCollect donor billing address information alongside payment.

UPI & QR Codes

SettingTypeDefaultDescription
Enable UPI IntegrationradioEnabledAdds the UPI payment method to the donation form for INR campaigns.
Enable QR Code GenerationradioEnabledRenders a scannable QR code on each campaign’s public page.
QR Code Amount Pre-fillradioEnabledIncludes the campaign’s goal amount in the QR code so the donor’s UPI app opens with that value.
UPI Merchant IDtextYour registered UPI merchant ID (VPA). Required for QR code generation.

Customization

Template Overrides

The two front-end templates can be overridden by copying them into your theme:

  • templates/donation-form/upi-fields.php → your-theme/charitable/donation-form/upi-fields.php
  • templates/qr-code/qr-code-display.php → your-theme/charitable/qr-code/qr-code-display.php

Currency Handling

Razorpay supports INR, USD, EUR, GBP, SGD, AED, CAD, AUD. If your Charitable currency is set to anything outside that list, the integration falls back to INR. UPI and QR-code features are restricted to INR campaigns by Razorpay policy.

Troubleshooting Guide for Razorpay + Charitable

The Razorpay tab is missing from Payment Gateways

Confirm the addon is activated under Plugins. If it is, deactivate and reactivate it. The tab is registered on the Charitable bootstrap, so a fresh activation forces it to appear.

Donations complete in the popup but stay “Pending” in Charitable

The webhook is not reaching your site, or the webhook secret is missing. Check that the webhook URL in your Razorpay dashboard matches the one shown in the Razorpay settings help text, and that the Webhook Secret field is filled in. Make a 1 INR test donation and watch the Charitable → Tools → Logs tab to confirm the webhook arrived.

UPI fields don’t appear on the donation form

UPI is restricted to INR campaigns. Check that Charitable → Settings → General → Currency is set to Indian Rupee, and that Enable UPI Integration is on.

QR code is missing from the campaign page

Check that Enable QR Code Generation is on, that UPI Merchant ID has a valid VPA, and that the campaign currency is INR.

Refunds don’t sync back to Razorpay

Refunds initiated inside Charitable are sent to Razorpay through the API. Refunds issued in the Razorpay dashboard come back through the webhook. If a dashboard-initiated refund is not reflected, the webhook is the issue (see the second troubleshooting entry above).

Developer Resources

Hooks & Filters

  • charitable_razorpay_start (action) — Fires once after the Razorpay addon has finished loading. Useful for hooking in additional integrations.
  • charitable_razorpay_languages_directory (filter) — Filters the directory used to load translation files.
  • charitable_payment_gateway_supports (filter) — Charitable core filter; the addon hooks into this to declare recurring-donation support.

AJAX Endpoints

The addon registers several internal AJAX actions for the donation flow. They are not public API and are documented here for transparency:

  • charitable_razorpay_create_order — Creates a Razorpay order before payment.
  • charitable_razorpay_verify_payment — Verifies the signature returned by the popup.
  • charitable_razorpay_process_upi — Processes a direct UPI submission from the form.
  • charitable_razorpay_generate_qr — Generates a campaign QR code on demand.
  • charitable_razorpay_download_qr — Returns a downloadable PNG of the campaign QR code.

Webhook URL

The webhook URL Charitable expects Razorpay to call is shown inline in the Webhook Secret help text. It uses Charitable’s standard listener pattern: https://your-site.com/?charitable_listener=razorpay.

How To Share Questions and Feedback

We’re always improving, and your experience with our latest features helps us get it right. It only takes a minute.

Fill out our feedback form »

Stay Connected for More Nonprofit Resources

For more tutorials and videos tailored to nonprofits, subscribe to our YouTube channel. We regularly publish expert tips, step-by-step guides on migrations like this GiveWP to Charitable switch, fundraising strategies, and practical resources to help your organization succeed.

🗞️ Get weekly tips and exclusive guides in your inbox
Join our newsletter →  

🎥 Watch step-by-step tutorials and success stories
Subscribe to our YouTube channel →  

👩🏽‍💻 Connect with our community and get daily nonprofit insights
Follow us on LinkedIn →

🥳 Fun reels and non-profit insights
Follow us on Instagram → 

👀 Insightful & fun videos to help you grow your cause
Follow us on TikTok→  

🌎 Subscribe and follow for general fundraiser tips
Get Fundraiser Tips on TikTok → 

Still have questions? We’re here to help!

Last Modified:

What's New In Charitable

View The Latest Updates
🔔 Subscribe to get our latest updates
📧 Subscribe to Emails

Email Subscription

Join our Newsletter

We won’t spam you. We only send an email when we think it will genuinely help you. Unsubscribe at any time!

Improvement Migrations

↔️ Importing From GiveWP, Donorbox, GiveButter… even CSV!

Whether you’re migrating from another platform or consolidating your records, moving your data to Charitable is now faster and more flexible than ever. We’ve streamlined the process so you can bring over your entire fundraising history in just a few clicks.

🔄 Native GiveWP, Donorbox, & GiveButter Support: Switching from a major platform? Our dedicated migration tools handle the heavy lifting, automatically mapping your donors and donations directly into Charitable—no technical skills required.

📂 Universal CSV Import: Moving from a custom system or a specialized CRM? If you can export it to a CSV, you can import it here. Our smart mapping tool lets you align your columns to Charitable fields like names, emails, phone numbers, and addresses in seconds.

Instant Donor Profiles & Custom Tags: Automatically create rich donor profiles and bring in custom tags to keep your data organized. Segment and engage your supporters from day one with a clean, professional database structure.


Ready to make the switch?

Check out our GiveWP Migration Guide

Learn more about our Import Tools

Improvement Payments

💳 New Braintree Features For Your European Donors

With the release of Braintree addon version 1.3.0, you can now empower your European donors with the payment methods they trust and prefer, making giving seamless for international supporters.

🌍 Six New European Payment Methods: Support popular local options like iDEAL (Netherlands), Bancontact (Belgium), BLIK (Poland), and more to meet donors where they are.

⚡ Frictionless Donor Experience: These bank-based methods allow donors to authenticate directly with their own bank in a secure popup… no credit card numbers required.

⚙️ Automatic Currency Sync: No complex setup needed. The builder automatically displays the correct payment buttons based on your site’s currency (EUR or PLN), ensuring a relevant experience for every visitor.

Campaigns New

🖼️ Campaign Featured Images: Pro-Level Visuals Made Simple

With the new Campaign Featured Image setting in our visual builder, you now have a single, dedicated place to manage how your fundraisers look across your entire site and beyond.

🖼️ One Image, Everywhere: Set a primary thumbnail that automatically syncs to campaign grids, lists, and shortcodes—no more relying on layout order.

📱 Social Sharing Optimized: Easily upload images at the perfect size to ensure your campaigns look stunning and professional when shared on social media.

🔍 SEO & Accessibility Ready: Add custom alt text directly within the builder to improve search rankings and ensure your mission is accessible to every supporter.

Improvement receipts

🗓️ Annual Receipts 2.0: Send Year-End Receipts to Every Donor in Minutes

You can now send annual receipts in minutes with a few clicks to all your donors.

📧 One-Click Bulk Send Wizard that guides you to sending to hundreds of donors simultaneously directly from your WordPress dashboard.

🔍 Smart “Dry Run” Mode: See exactly who will receive a receipt and who will be skipped (and why) before a single email leaves your server.

🛡️ SMTP-Aware & Limit Protection: Charitable now detects your email setup and automatically adjusts batch sizes and pauses for daily limits to ensure your emails land in inboxes.

✅ Complete Audit Trail: Dedicated system log and on the individual donor’s profile, giving you a clear history for every fiscal year.

Stop dreading tax season and start spending that time on your mission. Update to Annual Receipts 2.0 and automate your year-end reporting today.

Addon Donations Improvement

🎈Recurring Donations 2.0: Smarter Automation, Better Recovery, and More Control

We’ve completely rebuilt our Recurring Donations system to help you grow your reliable income stream while giving you (and your donors) more powerful tools than ever before.

What’s New:

🔒 Recurring-Only Campaigns: You can toggle “Recurring Only” mode in the campaign builder to hide the one-time option entirely, ensuring your supporters stay focused on long-term commitment.

📧 Automatic Payment Recovery: Our new Payment Failed Email fires automatically the moment a subscription fails.

🛠️ Self-Service Donor Control:The new Cancel Subscription Button appears directly in the donor dashboard, allowing supporters to pause or end their recurring gifts on their own terms—reducing your admin burden and payment disputes.

📊 Real-Time Revenue Insights: Track your growth, monitor active subscriptions, and see exactly how much predictable support is coming in each month at a glance.

Our new Recurring Donations addon gives you the professional-grade tools you need to grow your mission.