=== Better Payment – Donation Forms, AI Fundraising Campaigns, Recurring Donations & Payment Forms === Contributors: wpdevteam, re_enter_rupok, asif2bd, fuadragib, rahatsheikhleon Donate link: https://wpdeveloper.com Tags: donation, fundraising, donate, charity, crowdfunding Requires at least: 6.0 Tested up to: 7.2 Requires PHP: 7.4 Stable tag: 2.5.2 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Build AI-powered fundraising campaigns, donation forms and payment forms with Stripe, PayPal and Paystack. Works with Elementor and Gutenberg. == Description == **[Better Payment](https://wpdeveloper.com/better-payment/) is a WordPress donation plugin and fundraising campaign builder. Build a fundraising campaign page with a goal and a progress bar, add a donation form or a payment form to any page, and accept donations and payments through Stripe, PayPal and Paystack.** Better Payment works with Elementor and with the block editor (Gutenberg). You do not need WooCommerce, a cart or a checkout page. There is no platform fee and no commission, in the free plugin or in Pro. Your payment gateway's processing fees still apply. Better Payment is built for nonprofits, charities and NGOs; churches, mosques and other religious organizations that collect tithes, offerings, zakat or sadaqah; schools, clubs and community groups; medical, emergency, animal rescue and environmental fundraisers; and creators, freelancers and small businesses that need a simple payment form. ## Fundraising Campaign Builder The Campaign Builder is a visual drag-and-drop builder for fundraising campaigns. You see the real campaign page while you edit it. - **Fundraising goal and progress bar.** Set the goal as an amount, a number of donors or a number of donations. Show the amount raised, the number of donors, the percentage funded and the days left. - **Suggested donation amounts**, each with an optional description, a custom amount and a minimum donation. - **Donate button** that takes donors to your donation form page. - **11 campaign widgets.** Title, description, photo, progress bar, countdown, campaign summary, donation amounts, donate button, organizer, social sharing and social links. - **End date and automatic closing.** A campaign closes after its end date, when you close it or, if you choose, when it reaches its goal. - **A currency for each campaign.** Totals are never added across currencies. - **Style controls** for widths, colors, typography, borders, shadows and spacing. - **Mobile ready**, with a Donate bar on phones. - **Two ways to publish:** the campaign's own page, or the Campaign block on any page. Use a campaign for a charity appeal, a donation-based crowdfunding campaign or a membership drive. ## AI Campaign Builder Describe your cause and the AI Assistant builds the fundraising campaign for you: the layout, the headline, the story and the donation amounts. - Create a full campaign from one prompt or from a guided setup - Edit a campaign by chat: "shorten the story", "add a progress bar" - Rewrite, shorten or improve the text of a single widget - Get a review of your campaign and apply the suggestions you want - Generate campaign images with OpenAI or Google Gemini - Undo and redo every AI change The AI Assistant is optional and off by default. It works with your own API key from OpenAI, Anthropic (Claude), Google Gemini or OpenRouter. No payment or donor data is sent to the AI provider. ## Fundraising Campaign Templates Start from a ready-made fundraising template and customize every part of it. - 8 free campaign templates: refugee relief, medical emergency, child healthcare, disaster relief, student fund, animal rescue, tree plantation and club membership - A live preview of every template before you choose it - Blank one-column, two-column and custom layouts ## Donation Forms and Payment Forms Add a donation form or a payment form to any page and start accepting payments. - **Three free form layouts**, each usable as a donation form or a payment form. Layouts made only for donations are part of Pro. - **Fixed amount, amount list or custom amount**, with minimum and maximum - **Amount from Stripe:** use a Stripe product price as the form amount - **Stripe promotion codes** - **Success and error pages**, or a redirect to your own thank-you page - **Form design:** style the container, fields, amount buttons, pay button and sidebar - **Fundraising Campaign widget for Elementor** with three layouts ## Elementor and Gutenberg - **Elementor widgets:** Payment Form, Fundraising Campaign and User Dashboard - **Elementor Pro Forms** (requires Elementor Pro): add Stripe, PayPal or Paystack as an action after submit - **Gutenberg blocks:** Payment Form, Campaign and User Dashboard Elementor is optional. The blocks and the Campaign Builder work on any WordPress theme. ## Stripe, PayPal and Paystack - **Stripe.** Accept credit and debit card payments through Stripe Checkout. - **PayPal.** Enter your PayPal business email and accept PayPal donations and payments. - **Paystack.** Accept payments and donations in GHS, KES, NGN, USD and ZAR. - **30+ currencies.** Stripe accepts all of them. PayPal accepts most of them, but not AED, BAM, BGN, GHS, KES, NGN, RON, RSD or ZAR. Your gateway account's country can limit this further. - **Test mode and live mode** for each payment gateway. https://youtu.be/Mwg7bjP-ISA ## Secure by Design Payment amounts, currencies and prices are validated on the server, so values changed in the browser cannot override them. A transaction is marked as paid only after the payment gateway confirms it, and payment attempts are rate-limited. ## Transactions, Receipts and Emails - **Transaction list** with search and filters for status, currency, date, source and campaign - **Transaction details**, with mark as completed and delete - **CSV export and import** - **Receipts** that donors and customers can print - **Email notifications** to the admin and to the donor or customer, with your own subject, sender, reply-to, CC, BCC, logo and attachment https://youtu.be/tbK8G03QdxE ## User Dashboard The User Dashboard widget and block give logged-in donors and customers a summary and the full list of their own payments. ## WooCommerce Stripe Payments and Subscriptions - Use Better Payment as a Stripe payment gateway in the WooCommerce checkout, including the Checkout block - Turn a simple product into a subscription, with automatic or manual renewals, renewal invoices and subscription emails - A Subscriptions tab in My Account, where customers can cancel when you allow it - A Subscriptions screen in the admin, a user role for active subscribers and an optional auto-renew switch for customers ## MCP Server for AI Assistants Better Payment includes an optional Model Context Protocol (MCP) server, off by default. AI assistants such as Claude, ChatGPT, Cursor and VS Code can then read your transactions and manage your campaigns, through an Application Password or OAuth 2.1. No tool can create a charge or refund a payment. ## Better Payment Pro [Better Payment Pro](https://wpdeveloper.com/better-payment/#pricing) is the paid add-on. Every feature in this section needs Pro: - **Donation form layouts** with donation amount buttons - **Recurring donations and subscriptions** on payment forms, with Stripe - **One-time or recurring choice** for the donor, on the same form - **Popup donation form** that opens from the campaign's Donate button, with monthly donations through Stripe, a donor message and anonymous giving - **Split payments** in installments - **Donors Wall, FAQ and Video widgets** for the Campaign Builder - **Thermometer progress bar and impact cards** with a picture for each donation amount - **More campaign styling:** desktop, tablet and mobile values, gradients, hover effects and custom CSS - **Campaign updates** in the Fundraising Campaign widget for Elementor - **4 premium campaign templates** - **Product payment forms** for WooCommerce and FluentCart products - **Payment analytics and Campaign Analytics** with charts and optional currency conversion - **Refunds**, and sending a receipt again, from the transaction details - **User Dashboard extras:** analytics chart, subscription cards and cancellation https://youtu.be/gIRfxc9CQu0 ## Documentation and Support Read the [documentation](https://betterpayment.co/docs) to get started, or contact our [support team](https://wpdeveloper.com/support/). Better Payment is translation ready, and developers can extend it with WordPress actions and filters. ## Enjoying Better Payment? Join our [Facebook Group](https://www.facebook.com/groups/wpdevelopercommunity/) or [rate us on WordPress](https://wordpress.org/support/plugin/better-payment/reviews/#new-post). == Installation == 1. Install Better Payment from Plugins → Add New Plugin, or upload the plugin zip file there. 2. Activate it and follow the setup wizard. 3. Go to Better Payment → Settings and connect Stripe, PayPal or Paystack in test mode. 4. Create a campaign under Better Payment → Campaigns, or add the Payment Form block or the Better Payment widget in Elementor to a page. 5. Make a test payment, then switch your gateway to live mode. 6. For recurring donations, a popup donation form and more, get [Better Payment Pro](https://wpdeveloper.com/better-payment/#pricing). == Frequently Asked Questions == = How do I create a fundraising campaign? = Go to Better Payment → Campaigns and add a new campaign. Choose a template, describe your campaign to the AI Assistant, or start from a blank layout. Set the goal, the donation amounts and the Donate button, then publish. The campaign gets its own page, and you can also show it on any page with the Campaign block. = Do I need WooCommerce or Elementor? = No. Donation forms, payment forms and fundraising campaigns work without WooCommerce and without Elementor. The Campaign Builder and the Payment Form, Campaign and User Dashboard blocks work in the block editor, with any standard WordPress theme. WooCommerce is needed only for the WooCommerce payment gateway and WooCommerce subscriptions. If you use Elementor, you also get the Elementor widgets and, with Elementor Pro, the Elementor Pro Forms integration. = Does Better Payment charge a fee on donations or payments? = No. Better Payment charges no platform fee and no commission, in the free plugin or in Pro. Stripe, PayPal and Paystack charge their own processing fees. = Which payment gateways and currencies are supported? = Stripe, PayPal and Paystack, with more than 30 currencies. Stripe accepts all of them, PayPal accepts most of them, and Paystack accepts GHS, KES, NGN, USD and ZAR. You can turn on one, two or all three gateways, and each fundraising campaign can use its own currency. Each gateway has a test mode in Better Payment → Settings, so you can make a test payment before you go live. = Can I set a donation goal, a progress bar and suggested amounts? = Yes. Each campaign has a goal: an amount, a number of donors or a number of donations. The progress bar and the campaign summary show the amount raised, the number of donors, the percentage funded and the days left, and the Countdown widget counts down to the end date. You can also offer suggested amounts with a short description under each, allow a custom amount and set a minimum donation. = Can a campaign close automatically? = Yes. A campaign stops taking donations after its end date. You can also close it yourself, or have it close when it reaches its goal. = Is the AI Assistant free? Which AI providers does it support? = The AI Assistant is part of the free plugin. You use your own API key from OpenAI, Anthropic (Claude), Google Gemini or OpenRouter, and you pay that provider for your usage. Image generation works with OpenAI and Google Gemini. The AI Assistant is off until you turn it on. = Can I use Better Payment for crowdfunding? = You can run a donation-based crowdfunding campaign: a public page with a goal, a progress bar and a donor count. Rewards and backer tiers are not included. = Can I accept recurring donations? = Recurring donations and subscriptions on payment forms are part of Better Payment Pro. So are monthly donations to a campaign, which donors start from the popup donation form and pay through Stripe. The free plugin can collect recurring payments for WooCommerce products through Stripe. = Does the donor leave my website to pay? = Yes, briefly. The donor pays on the secure Stripe, PayPal or Paystack page and then returns to your website, where the receipt is shown. = Where is donor and payment data stored? = Transactions are stored in your own WordPress database, and you can export them to a CSV file. Card details are entered on the Stripe, PayPal or Paystack page and are never stored on your website. The External services section below lists what is sent to each service. = What happens to my campaigns if I stop using Better Payment Pro? = Your campaigns, transactions and settings stay. Free features keep working. Pro widgets such as the Donors Wall are no longer shown to visitors, and a campaign that used the popup donation form links to your donation form page again. A thermometer is shown as the standard progress bar, and impact cards as the standard list of amounts. Your Pro settings are kept, so everything returns when you activate Pro again. == Screenshots == 1. Payment form layout 2. Donation form layout (Pro) 3. WooCommerce form layout (Pro) 4. Multiple payment methods 5. Payment transaction details 6. In-depth analytics for transaction (Pro) 7. Payment gateway settings 8. Custom email settings == External services == Better Payment connects to the services below, each only for the purpose described. = Stripe = Card payments for payment forms, Elementor Form actions, fundraising campaigns and the WooCommerce gateway. * When: a visitor pays with Stripe or returns from Stripe Checkout, a WooCommerce subscription renews, or you open the payment settings (to look up a Stripe product or price). A form whose amount comes from a Stripe price reads that price each time a visitor views the page. * Sent to `api.stripe.com`: amount, currency, product or price ID, payment description, the payer's email and name when the form collects them, order ID, return URLs and your Stripe secret key (authentication). For a WooCommerce renewal, the saved payment method ID. * Stripe.js loads from `js.stripe.com` on pages with a payment form, a User Dashboard or an Elementor form with a Better Payment payment action, and on the WooCommerce order payment page of the Better Payment gateway. It loads there even when Stripe is not enabled in the settings. The browser sends Stripe the visitor's IP address and browser details. * Terms of service: https://stripe.com/legal/ssa * Privacy policy: https://stripe.com/privacy = PayPal = PayPal payments for payment forms, Elementor Form actions and fundraising campaigns. * When: a visitor pays with PayPal, and when PayPal sends a payment notification (IPN) to your site. * Sent: the visitor is redirected to `www.paypal.com` (`www.sandbox.paypal.com` in test mode) with the amount, currency, item name, order ID, your PayPal business email and the return URLs. Each IPN message is posted back unchanged to `ipnpb.paypal.com` (`ipnpb.sandbox.paypal.com` in test mode) to confirm that PayPal sent it. * Terms of service: https://www.paypal.com/us/legalhub/useragreement-full * Privacy policy: https://www.paypal.com/us/legalhub/privacy-full = Paystack = Paystack payments for payment forms, Elementor Form actions and fundraising campaigns. * When: a visitor pays with Paystack, and when the visitor returns from Paystack to confirm the payment. * Sent to `api.paystack.co`: amount, currency, the payer's email address, payment reference, return URL and your Paystack secret key (authentication). * Terms of service: https://paystack.com/terms * Privacy policy: https://paystack.com/privacy/merchant = AI providers (OpenAI, Anthropic, Google Gemini, OpenRouter) = The optional AI Assistant in the Campaign Builder. It is off until an administrator turns it on, chooses a provider and enters their own API key. Only that provider is contacted. * When: an administrator sends a request from the AI Assistant (generate, edit, analyze, refine a brief or generate an image). Site visitors never trigger it. * Sent: the request text, the current campaign's layout, text and settings, the site's currency and your API key (authentication). No payment, transaction or customer data. * Generated images: the plugin downloads the image from the address the provider returns (the provider's own file storage) and saves it to your Media Library. * OpenAI (`api.openai.com`) — Terms of use: https://openai.com/policies/terms-of-use — Privacy policy: https://openai.com/policies/privacy-policy * Anthropic (`api.anthropic.com`) — Commercial terms: https://www.anthropic.com/legal/commercial-terms — Privacy policy: https://www.anthropic.com/legal/privacy * Google Gemini (`generativelanguage.googleapis.com`) — Terms of service: https://ai.google.dev/gemini-api/terms — Privacy policy: https://policies.google.com/privacy * OpenRouter (`openrouter.ai`) — Terms of service: https://openrouter.ai/terms — Privacy policy: https://openrouter.ai/privacy = Google Fonts = Fonts for the payment form and fundraising campaign styles, the admin screens and the email receipt. A Google font chosen in a Better Payment block's typography settings loads the same way. * When: a page with one of these styles is opened, an email receipt is opened in an email client, or a Google font is chosen or shown in the block editor. * Sent to `fonts.googleapis.com` and `fonts.gstatic.com`: the font request, with the visitor's IP address and browser user agent. * Terms of service: https://developers.google.com/fonts/terms * Privacy policy: https://policies.google.com/privacy = YouTube = A product video on the Better Payment dashboard in wp-admin. * When: only when an administrator clicks the video to play it. Nothing loads before that click. * Sent to `www.youtube-nocookie.com` (YouTube's privacy-enhanced mode): the player request, with the administrator's IP address and browser details. No cookies are set until the video plays. * Terms of service: https://www.youtube.com/t/terms * Privacy policy: https://policies.google.com/privacy = Gravatar = The User Dashboard shows the logged-in user's avatar through WordPress's own avatar functions, which use Gravatar. * When: a logged-in user views a page with the User Dashboard, or an editor previews its block. Only while Settings → Discussion → Show Avatars is on. * Sent to `secure.gravatar.com` (or a `gravatar.com` host): a hash of the user's email address, with the visitor's IP address and browser details. * Terms of service: https://wordpress.com/tos/ * Privacy policy: https://automattic.com/privacy/ = WPDeveloper usage tracking (WP Insights) = Optional usage statistics that help keep the plugin compatible with other plugins and themes. Off until an administrator chooses "Proceed To Next Step" on the first screen of the setup wizard. "Skip It" sends nothing. * When: only after that opt-in. Once right away, then once a day, and once when the plugin is deactivated. The daily send does not run while Better Payment Pro is active. * Sent to `send.wpinsight.com`: site URL and name; WordPress, PHP and server software versions; language, charset, text direction and multisite status; active plugins and theme, and the number of inactive plugins; the Better Payment version; a site ID the service assigns; which Better Payment widgets, blocks, campaign elements, features and gateways you use; and the email address of the administrator who opted in (or the site's admin email), to send the discount coupon. On deactivation, also the reason chosen in the optional deactivation form. No payment or transaction data, customer details, API keys, server file paths or inactive plugin names. * Terms and conditions: https://wpdeveloper.com/terms-and-conditions/ * Privacy policy: https://wpdeveloper.com/privacy-policy/ == Source code == The JavaScript and CSS files in `assets/` are compiled with `@wordpress/scripts` (webpack). Their human-readable source ships with the plugin, in the `src/` directory: * `src/admin/` — the React admin screens and the setup wizard * `src/campaign-builder/` and `src/campaign-list/` — the Campaign Builder * `src/blocks/` — the Gutenberg blocks * `src/js/` and `src/css/` — the front-end scripts and styles * `src/controls/` — the shared block editor controls, compiled into `assets/blocks/` == Changelog == = 2.5.2 - 01/12/2026 = - Added: Countdown widget in the Campaign Builder, counting down to the campaign's end date, with its own Style options - Added: Campaign goal types, so a goal can count donors or donations as well as an amount - Added: Descriptions for suggested donation amounts, shown under the amounts on the campaign page - Added: Month and year grids in the date filter, with keyboard navigation and typed dates - Improved: Redesigned campaign Settings tab with a status summary, section navigation, a searchable currency list and new goal, end date and background controls - Improved: The campaign Ending Date no longer takes a past day, and "Accept donations" and "Stop at the goal" are switches - Improved: New select menus on the Settings page, in Quick Setup and in the Campaigns bulk actions - Improved: Faster per-campaign reports through a database index, and React 19 compatibility for the admin and the block editor - Improved: Compatibility with WordPress 7.2 - Improved: The date filter takes no future date, starts the week on the site's first day and fits small screens - Improved: Currency dropdowns name a currency without repeating its symbol, and a long name wraps in the list - Fixed: Dark mode for the date filter popup and the chosen option of list dropdowns, and a long campaign name squeezing the Transactions toolbar - Fixed: The Campaign filter in Transactions lists deleted campaigns last and marks trashed ones - Fixed: CSV import reports a refused file as refused, and Quick Setup's Finish keeps the settings a site already has - Fixed: The WooCommerce gateway is no longer offered for three-decimal currencies (BHD, JOD, KWD, OMR, TND), which it could not charge correctly - Fixed: Deprecation notices on PHP 8.4 and later during CSV import and export - Fixed: WooCommerce subscription cancelled and completed e-mails were sent with an empty body - Few minor bug fixes and improvements = 2.5.1 - 18/11/2026 = - Added: Currency filter on Transactions and an All Time date range on Transactions and Subscriptions - Improved: Totals keep each currency separate in the User Dashboard, the Fundraising Campaign widget and the MCP tools - Improved: Settings sidebar icons follow the active tab - Few minor bug fixes and improvements = 2.5.0 - 10/11/2026 = - Added: Campaign auto-closure based on end date, Closed status, or reached goal - Added: Campaign filter and column in Transactions, including exports - Added: MCP server for AI assistants (off by default) and recent payment error logs. - Improved: Clearer payment messages and unique donor counts - Improved: Campaign-level currency handling and accurate multi-currency totals - Fixed: Stripe/Paystack payment verification flow and Custom Redirect URL help text - Few minor bug fixes and improvements = 2.4.4 - 02/11/2026 = - Added: Advanced Campaign Builder styling with Content, Style and Advanced tabs, including widths, colors, borders, shadows, spacing and hover states - Added: Redesigned all eight campaign templates (v3), a mobile sticky Donate bar, and themed designs for AI-generated campaigns - Added: Full desktop and mobile previews of Pro templates for Free users - Improved: Moved Pro-only features out of Free while retaining upgrade previews - Improved: Template picker, accessibility, settings organization, and plugin download size - Fixed: Payment confirmation emails, settings saving, AI style feedback, progress bar visibility, default donation amounts, and builder element outlines - Security: Added quantity validation to prevent unauthorized payment quantities - Improved: Minor bug fixes and overall stability = 2.4.3 - 25/10/2026 = - Added: Campaign Donate Button popup payment option (Pro), payment amount limits, and secret key rotation notices - Fixed: Stripe, PayPal, and Paystack payment processing, verification, currency handling, decimal precision, and error handling - Fixed: Payment receipts, duplicate orders, payer validation, settings persistence, email templates, and subscription routing - Fixed: Campaign visibility, dates, goals, layouts, Donate Button behavior, builder editing, drag-and-drop, and AI actions - Improved: Campaign access control, CSV export safety, PayPal IPN validation, dashboard transaction matching, and AI history permissions - Security: Protected gateway secret keys, escaped payment-related output, rate-limited payment attempts, and rejected donations below 1 - Improved: Minor bug fixes and overall stability improvements = 2.4.2 - 14/10/2026 = - Fixed: PayPal return URL validation, CSV imports, transaction filters, subscription role fallback, and Payment Form block issues - Fixed: Admin email transaction links now work, including previously sent emails - Improved: External service documentation and bundled assets (photos and source code) - Improved: Removed third-party CDN dependency for Custom CSS - Improved: One-click gateway enablement for the Payment Form block - Improved: Security hardening and WordPress.org Plugin Check compliance - Few minor bug fixes & improvements = 2.4.1 - 11/10/2026 = - Fixed: PayPal and Paystack payment handling issues - Few minor bug fixes & improvements = 2.4.0 - 24/09/2026 = - Improved: Plugin architecture and code separation - Few minor bug fixes & improvements = 2.3.4 - 13/09/2026 = - Security Enhancement - Few minor bug fixes & improvements = 2.3.3 - 09/09/2026 = - Added: Live preview for prebuilt campaign templates - Improved: Redesigned prebuilt campaign templates - Few minor bug fixes & improvements = 2.3.2 - 19/08/2026 = - Added: Subscription for woo products - Added: Better Payment as woo payment gateway - Few minor bug fixes & improvements = 2.3.1 - 26/07/2026 = - Fixed: Fatal error on plugin activation caused by missing dependency files in the release package = 2.3.0 - 26/07/2026 = - Added: AI-powered fundraising campaign builder - Few minor bug fixes & improvements = Older versions = The changelog for 2.2.2 and earlier is in `changelog.txt`, in the plugin folder.