How to Accept Stripe Donations in WordPress (Free Guide)

  • 12 min read
  • Mike
How to Accept Stripe Donations in WordPress (Free Guide)

Last updated: November 4, 2026

Quick answer: To accept Stripe donations in WordPress, install the free GiftFlow plugin, connect your Stripe API keys under GiftFlow > Settings > Payment, add a Stripe webhook, create a campaign, and run a test donation in Stripe test mode. The whole setup takes about 15 minutes. No code needed, and no real money moves while you test.

Watch on YouTube. The video covers installing GiftFlow, connecting your Stripe test keys and creating the webhook. It also shows uploading and activating GiftFlow Pro with a license key, which you only need for recurring donations.

Chapters:
– 0:00 Install GiftFlow
– 0:45 Upload GiftFlow Pro
– 1:11 Activate your license
– 1:35 Open GiftFlow settings
– 1:48 Enable Stripe and select Sandbox (Test Mode)
– 2:09 Get your Stripe test API keys
– 3:03 Enable the webhook and copy the URL
– 3:11 Add the destination in Stripe
– 4:35 Reveal the signing secret and save

Most Stripe donation tutorials stop at “paste your keys and add a shortcode.” That is where donations quietly get stuck on Pending. This guide goes further: it connects Stripe, sets up the webhook, runs a full test donation, and ends with a go-live checklist. If you are still choosing a plugin, you can compare donation plugins first.

Can you accept Stripe donations on a WordPress site?

Yes. Stripe handles the card payment. WordPress needs a donation plugin to show the form and record the donor.

  • Stripe processes the payment and tells your site what happened.
  • The plugin (here, GiftFlow) provides campaigns, the donation form, donor records and receipts.

What you need before you start

  • A WordPress site on HTTPS (WordPress 6.0 or higher, PHP 7.4 or higher, and an SSL certificate; the same requirements apply to GiftFlow Pro).
  • The free GiftFlow plugin from WordPress.org.
  • A Stripe account. Nonprofits should check Stripe’s own eligibility rules and options for their country.

We use Stripe test mode throughout, so no real money moves. GiftFlow labels the matching setting “Sandbox (Test Mode)”, and Stripe’s dashboard shows a Sandbox banner in this mode.

How do you accept Stripe donations in WordPress with GiftFlow?

Seven steps, in order. Do not skip step 4.

Step 1. Install and activate the free GiftFlow plugin

  1. In WordPress, go to Plugins > Add New.
  2. Search for GiftFlow.
  3. Click Install Now, then Activate, and check that GiftFlow now appears in your installed plugins.
Install the GiftFlow plugin in WordPress

Step 2. Get your Stripe test API keys

API keys are the credentials that let your site talk to your Stripe account. Test keys only work with test cards, which is exactly what you want first.

  1. Open your Stripe Dashboard in test mode (the dashboard shows a Sandbox banner).
  2. Open Developers > API keys to find your Standard keys.
  3. Copy the Publishable key. It starts with pk_test_.
  4. Copy the Secret key. It starts with sk_test_. Keep it private: never share it, post it, or paste it anywhere except your WordPress settings page.

Read more in Stripe’s API keys documentation.

Stripe test API keys page with the keys hidden

Step 3. Connect Stripe in GiftFlow

  1. Go to GiftFlow > Settings and open the Payment tab.
  2. Expand the Stripe (Credit Card) section.
  3. Turn on Enable Stripe.
  4. Set Stripe Mode to Sandbox (Test Mode). The key fields for test mode are empty at this point.
  5. Paste the keys you copied from Stripe into Stripe Sandbox Publishable Key and Stripe Sandbox Secret Key.
  6. Leave the Live key fields empty for now.
  7. Click Save Settings.
GiftFlow Stripe settings with test mode selected

Step 4. Add the Stripe webhook so donations don’t get stuck on Pending

A webhook lets Stripe tell your site a payment succeeded, even if the donor closes the tab before the thank-you page loads. Without it, some donations can stay Pending instead of Completed.

  1. Turn on the webhook and copy the URL in GiftFlow. In the same Stripe section, turn on Enable Webhook and copy the webhook URL shown next to it. It looks like https://your-site.com/wp-admin/admin-ajax.php?action=giftflow_stripe_webhook.
  2. Add a destination in Stripe. In Stripe, in test mode, open Developers > Webhooks and click Add destination.
  3. Choose the events. Select events from Your account. GiftFlow lists its recommended Stripe events next to Enable Webhook: copy the names, then search for and select each one in Stripe. Review the selected events and click Continue. The four that matter for one-time donations are:
EventWhat it tells GiftFlow
payment_intent.succeededThe payment went through
payment_intent.payment_failedThe payment failed
payment_intent.canceledThe payment was canceled
charge.refundedThe payment was refunded

The rest of GiftFlow’s list covers recurring donations, which need GiftFlow Pro.
4. Choose the destination type. Select Webhook endpoint.
5. Name it and paste the URL. Give the destination a name and paste the GiftFlow webhook URL into Endpoint URL. Then click Create destination.
6. Reveal the signing secret. Reveal and copy the signing secret. It starts with whsec_. In GiftFlow, paste it into Stripe Sandbox Webhook Secret and click Save Settings at the bottom of the page.

Stripe documents the process in its webhooks guide.

Stripe webhook events for GiftFlow donations

Step 5. Create a donation campaign

Watch the campaign video on YouTube. It covers creating the campaign (this step), a test donation (Step 6) and the donation showing on the campaign page (part of Step 7).

Chapters:
– 0:00 Add a new campaign
– 0:19 Title and story
– 0:34 Featured image
– 0:43 Status, publish date and slug
– 0:51 Campaign category
– 1:05 General tab: goal, dates and status
– 1:37 One-time and recurring
– 2:03 Advanced tab: preset amounts, custom amounts, location, gallery
– 2:32 Save and preview
– 2:39 Campaign page and donation form
– 3:05 Pay with Credit Card (Stripe) and the test card
– 3:27 Thank-you screen
– 3:34 Raised amount and Donations tab

  1. Open GiftFlow in the WordPress admin menu and click Add New Campaign (0:00).
  2. Close the editor tips, then add the campaign title and story. The video uses “Warm Winter – Help Them Keep Going to School” (0:19).
  3. Set the featured image from your media library (0:34).
  4. Review the Status, Publish date and Slug in the sidebar (0:43).
  5. Add a campaign category, for example Education (0:51).
  6. Scroll to the Campaign Details box (the video calls it Campaign Settings) and start on the General tab (1:05). Enter the goal amount, here $25,000, set the start and end dates, and set Status to Active so the campaign accepts donations (1:13).
  7. One-time donations are enabled by default. Optionally enable Recurring, then pick the interval and the number of payments. Recurring needs GiftFlow Pro (1:37).
  8. Open the Advanced tab. Under Preset Donation Amounts, enter the suggested amounts (2:03).
  9. Turn on Allow Custom Donation Amounts, enter a Location, and use Select images to add photos to the campaign gallery (2:15).
  10. Save the campaign and open the preview (2:32).

The campaign page now shows the donation widget, so you have a working Stripe donate form without writing code.

Add New Campaign button on the GiftFlow campaigns screen
Campaign editor with the title, story and featured image
GiftFlow campaign General tab with goal amount, dates and status
GiftFlow campaign Advanced tab with preset donation amounts
GiftFlow campaign custom amounts, location and gallery settings

Step 6. Make a test donation

  1. On the campaign page, the donation widget shows the amount buttons. Click Custom amount to open the donation form (2:39).
  2. Choose a One-time or Recurring (Monthly) donation (2:53). Recurring needs GiftFlow Pro.
  3. Enter an amount, such as $150, and review your information (2:59). If you are not signed in, use a test email such as donor@example.com.
  4. Select Credit Card (Stripe) as the payment method (3:05).
  5. In test mode the form shows a notice (“You are currently in Stripe Sandbox Mode”) with the Stripe test card 4242 4242 4242 4242. Enter it with any CVC and a future expiry date, then complete the donation (3:11).
  6. The donation goes through and the thank-you screen appears (3:27).

The demo site in the video runs GiftFlow Pro, which is why the test gift shows as Recurring. One-time donations work in the free plugin.

You can also try the 3D Secure test card 4000 0025 0000 3155 and the declined card 4000 0000 0000 0002. The video does not show these two; Stripe lists them in its test card guide.

Campaign page donation widget with amount buttons
Donation form with the Stripe test mode notice and test card
Donation thank-you screen after a test payment

Step 7. Check the donation, the donor and the receipt

Confirm five things:

  • The campaign page shows the new total, here $150 raised of the $25,000 goal, and the donation is listed under the Donations tab (3:34).
  • GiftFlow > Donations shows the new donation as Completed.
  • GiftFlow > Donors shows the donor record.
  • The receipt email arrived.
  • In Stripe, the test payment is listed and the webhook delivery succeeded.

The video shows only the first check. The other four have no video: open them yourself in WordPress and Stripe.

If all five are true, the setup works.

Campaign page showing the raised amount after a test donation
Campaign Donations tab listing the test donation

How do you switch Stripe donations from test mode to live?

Verify your Stripe account, enter live keys, switch the mode to Live, and add a live webhook. In detail:

  1. Complete Stripe’s account verification (business details and bank account). Payouts are not sent until it is done.
  2. In Stripe, switch from test mode to live mode and copy your live keys from Developers > API keys.
  3. In GiftFlow, enter Stripe Live Publishable Key and Stripe Live Secret Key.
  4. Change Stripe Mode to Live (Production Mode).
  5. In Stripe’s live mode, add a new destination (Developers > Webhooks > Add destination) with the same URL, then paste its signing secret into Stripe Live Webhook Secret.
  6. Click Save Settings, then run one small real donation to confirm.

Never show live keys on screen or in screenshots.

Why is my Stripe donation stuck on Pending?

Usually the webhook. Check these first:

SymptomLikely cause
Card form missingEnable Stripe is off, or the publishable key is wrong
Pending instead of CompletedEndpoint missing in Stripe, Enable Webhook off, or the signing secret does not match
“Payment failed”Wrong test card, or a truncated secret key
“Stripe is not properly configured”The secret key field is empty

In Stripe, open your webhook endpoint to see recent delivery attempts and any error messages.

Can donors give monthly, and what does GiftFlow Pro add?

One-time gifts work in the free plugin. Recurring donations and finance-grade data exports are part of GiftFlow Pro, an add-on you install on top of the free plugin. Pro uses the Stripe connection you just built. GiftFlow Pro costs $19.99/month, $191.88/year or $579.99 for a lifetime license.

FeatureFreePro
Campaigns and donor recordsYesYes
One-time checkout (Stripe, PayPal)YesYes
Email notifications and receiptsYesYes
Recurring donations and subscriptionsNoYes
Donations CSV exportYesYes
Finance-grade data exports (accounting, audit, CRM)NoYes

GiftFlow Pro box: GiftFlow Pro on its own costs $19.99/month, $191.88/year or $579.99 for a lifetime license. Alone Pro includes GiftFlow Pro at $69/year for one site. The classic Alone theme does not include it.

To add monthly giving, follow our guide to set up recurring donations. See GiftFlow Pro for details, or explore the Alone Pro charity theme demos if you are building the whole site.

What next?

Frequently asked questions

Can I use Stripe to accept donations on a WordPress website?

Yes. Stripe processes the card payment, but it does not build the donation form for you. You add a donation plugin such as GiftFlow to WordPress, connect it to Stripe with your API keys, and donors pay on your own site. Check Stripe’s own rules and nonprofit options for your country before you go live.

Is GiftFlow free for Stripe donations?

Yes for one-time gifts. The free GiftFlow plugin handles campaigns, donor records, receipts and one-time donations through Stripe and PayPal. It needs WordPress 6.0 or higher, PHP 7.4 or higher and an SSL certificate (HTTPS). Recurring donations and finance-grade exports are Pro only. Stripe charges its own processing fees on every payment.

Do I need a Stripe webhook for WordPress donations?

It is strongly recommended. The webhook lets Stripe tell your site that a payment succeeded, failed, was canceled or was refunded, even if the donor closes the browser before the thank-you page loads. Without it, some donations can stay Pending instead of Completed.

Which Stripe webhook events does GiftFlow need?

GiftFlow lists its recommended Stripe events next to the Enable Webhook toggle, and you select each of them in Stripe. For one-time donations the four that matter are payment_intent.succeeded, payment_intent.payment_failed, payment_intent.canceled and charge.refunded. The rest of the list covers recurring donations: invoice.paid, invoice.payment_failed, customer.subscription.deleted and customer.subscription.updated.

How do I test Stripe donations without using real money?

Switch Stripe to test mode, copy the pk_test_ and sk_test_ keys, and set GiftFlow’s Stripe Mode to Sandbox (Test Mode). Then donate with the test card 4242 4242 4242 4242, any future expiry date and any CVC. No real money moves.

Can donors give monthly with GiftFlow and Stripe?

Yes, with GiftFlow Pro. Recurring donations are a Pro-only feature, not part of the free plugin. Pro adds recurring donations and subscriptions on the same Stripe connection you already set up, so you do not re-enter credentials. GiftFlow Pro on its own costs $19.99/month, $191.88/year or $579.99 for a lifetime license. Alone Pro licenses include GiftFlow Pro.

How do I switch GiftFlow from Stripe test mode to live?

Leave test mode, switch Stripe to live mode and copy the live keys. In GiftFlow, enter the Stripe Live Publishable Key and Secret Key, change Stripe Mode to Live (Production Mode), create a new live webhook in Stripe, paste its signing secret into the Stripe Live Webhook Secret field, and save. Complete Stripe’s account verification first.

Get started

Get GiftFlow: the free donation and fundraising plugin by Beplus. Install it, connect Stripe, and take your first test donation today.

Building a full charity site? Alone Pro includes GiftFlow Pro.