• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • Accept Stripe Payments
    • WP Download Monitor
    • Easy HTTPS Redirection
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

How to Accept Donations via Stripe from Your WordPress Site Easily

Home » Blog » How to Accept Donations via Stripe from Your WordPress Site Easily

Last updated: September 1, 2021


Using donation buttons are the simplest and quickest way to begin monetizing a WordPress site.  In this tutorial, I will show you how to use Stripe Payments to accept donations from your site easily.

If you want to accept donations via PayPal, then check out our accept PayPal donations tutorial.

Getting a Stripe account at stripe.com is quick and easy.  Barring approval complications, it should take no more than 5 minutes to sign up, and activate your account.  Compared to other payment processors, only a minimal amount of personal information is required.  You will however, need a valid bank checking account, in order to successfully activate your Stripe account.

Once your Stripe account has been activated, download, install and activate the WordPress Stripe Payments plugin.



Stripe API Key Setup

Next, you will need to know what your Stripe API Keys are.  You find out what your API Keys are by going to Account Settings, after you are logged into your Stripe Account, and then selecting the API Keys tab.

stripe-account-settings-menu
stripe-account-settings-api-keys

Your Stripe account has 2 sets of keys, a “Test” and a “Live” set.  For our purposes, we are only concerned with the “Live” set of keys.  Each set of keys contains a public “Publishable” key and a personal “Secret” key. It is important that you NEVER mixup or confuse your “Publishable” and your “Secret” keys.

You’ll then copy your Live API Keys into the Credentials section of the Stripe plugin.  When copying the keys from the Stripe API Keys tab, be careful not to copy trailing spaces when you select the key values.  Accidental copy/paste of trailing spaces accounts for almost all API Key authentication errors.  Also be careful not to mix-up and paste the wrong value into the plugin’s API Key fields.

stripe-paymens-plugin-settings
stripe-paymens-plugin-settings-part2

Creating the Stripe Donation Button

At this point, you are now ready to create your first donation button on a post or page.

In this example, we are creating a $10 donation button, for the “Feed The Bears” cause.  Our shortcode uses the following attributes:

  1. Name of our cause: name=”Feed The Bears”
  2. Quantity is non-applicable to donation buttons: quantity=”n/a”
  3. Price we are asking for: price=”10″
  4. Button text: button_text=”Donate Now”

Our completed shortcode would then look like this:

[accept_stripe_payment name="Feed The Bears" quantity="n/a" price="10" button_text="Donate Now"]
stripe-donation-shortcode-in-a-page

Because the shortcode only renders the actual donation button, you would need to precede the shortcode with your own donation pitch. This gives you the freedom to say whatever message you want to add just above or below the donation button.

Interacting with the Donation Button

Your visitors can now click on the donation button to send a donation to you.

When the button is clicked, a “Checkout” form appears as a screen overlay so the visitor can enter the credit card details and make the payment.

stripe-donation-checkout-form

Multiple Donation Buttons

Create a few buttons for various different donation amount (example: $5, $10, $20, $50 etc). Then you can put all these buttons next to one another so your visitors can pick an amount and pay.

When using multiple buttons on a page, make sure to use different value for the “name” parameter of the shortcode to make them unique. The plugin uses the “name” parameter’s value to identify the button on the page. If you have multiple buttons with exactly the same name then it can’t figure out which particular button is being clicked.

In the button text, specify the donation amount (example: Donate $20) so the visitor knows which button to click. Below is an example showing how it looks:

various-stripe-donation-amount-options-example

Allow the Visitor to Specify a Custom Donation Amount

You can also create a Stripe donation button where the visitors can enter how much they want to donate.

Use zero (0) as the value of the “price” parameter in the stripe payments shortcode to allow the visitors to enter a custom amount.

Below is an example shortcode:

[accept_stripe_payment price="0" name="Test donation for a good cause" button_text="Donate Custom Amount"]

It will create a donation button where the user can enter the donation amount similar to the example shown below:

example-stripe-donation-button-with-custom-amount

Customize the Charge Description in the Stripe Popup

You can use the “description” parameter in the shortcode to customize the description that shows up in the Stripe payment popup window.

Below is an example shortcode:

[accept_stripe_payment price="0" name="Another test donation" button_text="Donate" description="This is a custom description that will show in the payment window"]

Related Posts

  • How do I Start a Blog and Make Money Online?
  • List of the Best and Must Use WordPress Plugins
  • WordPress eStore Startup Guide for Dummies
  • Adding a PayPal Payment Widget to The Sidebar of Your WordPress Site

Blog Setup,  Blogging Tips,  Web Development Payment Gateways,  Payment Processor,  paypal donation plugin,  sell premium plugins,  selling online,  wordpress ecommerce,  Wordpress Plugin

Reader Interactions

Comments (20 responses)

  1. admin says:
    March 24, 2018 at 1:12 am

    @Belinda, Yes. Edit the Stripe product in question then enable the “Collect Address on Checkout” field.

  2. Belinda says:
    March 22, 2018 at 6:21 pm

    Is there a parameter I can set to collect contact information from the user?

  3. admin says:
    August 28, 2017 at 10:07 pm

    @Heather, I see no issue with asking people to contribute even if you aren’t a non-profit. Put all the details out there then your visitors can make an informed decision to contribute or not. Nothing wrong with that.

  4. Heather says:
    August 28, 2017 at 6:23 pm

    There seems to be some question about whether it’s OK to use the word ‘DONATE’ on a site that isn’t a non-profit. If you are an individual with a personal website and you are asking people to contribute to support your site, is this ok? Does anyone have some experience with this?

  5. admin says:
    August 25, 2017 at 11:55 pm

    @Andy, In your case just remove the quantity parameter altogether from the shortcode.

  6. Andy says:
    August 25, 2017 at 9:06 pm

    [accept_stripe_payment name=”$5 – Thank you” quantity=”n/a” price=”5″ button_text=”Donate $5.00″]

  7. admin says:
    August 25, 2017 at 8:35 pm

    @Andy, What is the full shortcode that you are using?

  8. Andy says:
    August 25, 2017 at 8:34 am

    Hi,
    Thanks for the plugin. I’m trying to accept donations and have set quantity=”n/a” as advised but in the pop-up overlay, it shows ‘NA pieces for 5 USD’ which doesn’t make much sense for a donation. I would prefer if it just said ‘5 USD’ as advised. Am I doing something wrong? Thanks again.

  9. admin says:
    August 15, 2017 at 7:11 pm

    @Msol, I have added the tip in the page.

  10. Msol says:
    August 15, 2017 at 11:43 am

    It would be great to add to the instructions the tip of assigning different NAMES to the different amount donation buttons. I ended up losing several hours trying to figure out why my $2 button was charging $10! Thanks anyway for a great plugin.

  11. admin says:
    July 18, 2017 at 7:29 pm

    This plugin can only save the card when a full transaction is done.

  12. Charge later says:
    July 18, 2017 at 8:30 am

    Is it possible to only create a customer but not actually charge them? It says there is an option to save the card in Stripe, but is it possible to do that without charging them? (and then of course charge them later from Stripe)

    It is not possible to do that by charging them “0”, because that just creates a box for them to enter the amount themselves, right?

    Thank you in advance!

  13. admin says:
    June 4, 2017 at 9:09 pm

    @Steve, That message is only shown if it is a digital item. So if you specify a “url” value in the shortcode it will assume that it is a digital item and then allow users to download that item after the payment. If you leave that parameter empty in the shortcode then it will assume that this is a non-downloadable item and it won’t show that message.

  14. Steve says:
    June 4, 2017 at 3:05 pm

    Can I change the “Please click here to download” message on the default checkout message – I want to offer a service not a product download?

  15. admin says:
    May 11, 2017 at 3:57 am

    @Nates, This plugin doesn’t do recurring at the moment. You can maybe take a look at our WP eStore plugin which has Stripe recurring payments option.

  16. Nates says:
    May 11, 2017 at 2:18 am

    Hi

    Is there a way to have recurring payments?

  17. admin says:
    March 25, 2017 at 6:32 am

    @Duncan, You can have as many donation payment box as you want to. Remember to change the value of the “name” field to make them different. Different items are suppose to have different names. If you use the same name for all your payment box then the plugin won’t be able to recognize the difference.

  18. Duncan Birtwistle says:
    March 25, 2017 at 4:39 am

    Can you have only one payment ‘block’ per site?

  19. admin says:
    December 29, 2015 at 7:33 pm

    @onastvar, You can create a few donation buttons with various pre-configured amount. Then your visitors can pick one option. This plugin doesn’t haven’t option for the visitors to enter the donation amount.

  20. onastvar says:
    December 29, 2015 at 1:20 pm

    Hello,

    Thanks for the “HowTo”. One question: Is it possible and would you be able to share how could I setup this up so that the end user enters the amount of donation instead of predetermined amount?

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

WP Express Checkout Plugin
wordpress estore plugin
wordpress membership plugin
wordpress affiliate plugin

Recent Posts

  • How to Use Browser Developer Tools to Inspect Elements and [...]
  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]

Comment & Socialize

  • @Rob, We have just released ...
    - admin
  • I installed the plugin a co ...
    - Rob
  • @Sebastian, We've released ...
    - admin
  • I've used this plugin on a ...
    - Sebastian Djupsjöbacka
  • @John, this plugin doesn't ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2025 | Tips and Tricks HQ