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 online donations, 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 → 

Powerful Fundraising Resources

⬇️ Download proven strategies, campaign ideas, and expert tools
Get the Fundraising Kit →  

💸 Get Free Fundraising Resources
Head to the Charitable Fundraising Hub

🤔 Got questions about Charitable?
Charitable FAQs

🏎️ Take Charitable for a spin
Create your Charitable Demo

Understand non-profit terms and jargon
Non-Profit Glossary

% Looking for non-profit deals and discounts?
Best Non-Profit Deals and Discounts →

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!

ambassadors New

👤 Creator Profiles: Put a Face to Every Peer-to-Peer Campaign

Ambassadors 3.3.0 now provies Creator Profiles — giving your supporters a permanent, shareable public home that turns one-time fundraisers into ongoing relationships.

Image

👤 Public Creator Pages: Give every fundraiser an instant, clean landing page at /creator/their-name/ to showcase their custom avatar, bio, and a browsable grid of their campaigns.

📊 Proof of Impact: Boost donor trust by displaying site-wide milestones on the profile—like total funds raised and total donor counts.

💳 Interactive Hover Cards: When donors hover over a creator’s name on a campaign page, a compact card expands with their bio and social handles right at the moment of decision.

📍 Responsible Location Sharing: Allow creators to safely show local supporters where they are based using only city, state, and country details.

🛠️ Self-Serve Customization: Fundraisers can update their own profiles and link up to six social networks directly from the My Campaigns hub, saving you admin time.

Ready to empower your advocates? Update to Ambassadors 3.3.0 and turn on “Enable Public Creator Page” today!

Improvement Payments

📱 Turn Mobile Scrollers Into Donors: Meet Charitable’s Mollie Upgrade

Losing mobile supporters because they hate typing out long card numbers on their phones? Charitable’s updated Mollie integration features:

Image

⚡ One-Tap Wallet Checkout: Enable donors to complete their gifts instantly using Apple Pay or Google Pay with a simple face scan, fingerprint, or tap.

💰 No Extra PCI Burden: Skip complex domain verification and security compliance since all wallet transactions run safely through Mollie’s hosted checkout.

🛠️ Custom Cancel Routing: Keep the experience predictable by automatically sending donors who back out to your cancellation page, or use developer filters to route them to a custom page.

Visit this page to learn more.

ambassadors improved New

Moderation and Directory Screens In Ambassadors 3.0

Ambassadors 3.0 has new features: moderation and directory screens… now easily see those who are earning donations on your peer to peer network – including campaign creators that might need to be verified – all in one place. Generate reports, email ambassadors and campaign creators directly and more.

Image

🚀 See when campaign creators and ambassadors have updated their campaigns, what donors/donation they have brought in and more.

🎉 Manually add ambassadors and campaign creators, and approve them in one-click!

Visit this page to learn more.

New Payments

⚡ Unlock India-Based Donations: Meet Charitable’s Native Razorpay Integration

Trying to collect donations in India? Charitable’s native Razorpay integration features:

Image

⚡ Instant UPI Integration: Accept fast, local donations directly inside your form via apps like PhonePe, Google Pay, Paytm, and BHIM without sending donors away from your site.

📲 Auto-Generated Campaign QRs: Instantly render scannable QR codes encoding a UPI deep link directly on your public campaign pages and sidebars for an effortless “scan-to-give” experience.

💰 Dual Local & Global Reach: Headline your campaigns in INR while seamlessly accepting major international currencies like USD, EUR, GBP, and CAD to maximize global support.

🔁 Seamless Recurring Giving: Fully integrates with the Charitable Recurring addon to manage automatic monthly subscriptions directly through Razorpay without extra code.

↩️ Automatic Two-Way Sync: Keep your books perfectly clean with two-way refund syncing—issue a refund inside WordPress or your Razorpay dashboard and both sides update automatically.

🔒 Webhook-Verified Security: Automatically protect your donation records using HMAC-signed webhook verification to ensure every status update represents real money cleared on the rails.

Visit this page to learn more.

Integration New

🎉 New Built-in PushEngage Integration

Struggling with falling email open rates and rising ad costs just to keep your supporters engaged? Charitable’s built-in PushEngage integration features:

Image

🔔 Zero-Fee Direct Messaging: Deliver crisp, instant pop-up notifications straight to your donors’ desktops and mobile devices.

⏱️ Four Smart Automated Triggers: Automatically send updates for immediate donation thank yous, full-list campaign launches, urgent “ending soon” alerts, and goal milestone celebrations.

📈 Group Momentum Broadcasts: Turn private milestones into public wins by automatically broadcasting alerts to your entire subscriber list the moment a campaign hits 50%, 75%, or 100% of its goal.

📊 Automatic Analytics Tracking: Monitor exactly where your incoming notification traffic is coming from with built-in attribution that requires zero complex configuration.

Visit this page to learn more.