How to get donations from stripe in WordPress

How to get donations from Stripe in WordPress


In this tutorial, we are going to teach you how you can get donations in your WordPress site for non-profit organizations using Stripe. We assume that you already have registered a Stripe account and a WordPress site.

We will be using a WordPress plugin to get donations.

Learn how to integrate Stripe using Javascript.

Stripe Payment Gateway – Javascript, PHP

Following are the steps:

Video tutorial:

  1. Goto Plugins > Add New.
  2. Search for “Stripe”.
  3. Install and activate the plugin named “Stripe Payments by wptipsntricks”.
  4. Then you will see “Stripe Payments” menu on left sidebar on admin panel. Goto Stripe Payments > Settings.
  5. Scroll down and you will see 4 fields:
    • Live Stripe Publishable Key
    • Live Stripe Secret Key
    • Test Stripe Publishable Key
    • Test Stripe Secret Key
  6. Goto your stripe dashboard and from left sidebar, goto Developers > API keys.
  7. Copy the publishable and secret key and paste them in respective fields. Make sure if you are using test mode or live mode.
  8. Coming back to your WordPress admin panel, goto Stripe Payments > Add New Product.
  9. In “Price & Currency” section, select “Donation”.
  10. You will also see a section named “Embed Product” on right hand side below “Publish” button.
  11. Copy the shortcode and paste that in your post or wherever you want to show the payment button.

Now, you can use the following credentials for testing the payment method:

Card Number5555 5555 5555 4444
Expiry Month02
Expiry Year22

Whenever someone makes a donation to your site, you will see that in your Stripe dashboard “Payments” page from the left sidebar. You can follow this link for sandbox accounts. For live accounts, simply remove the “test” part from the URL.

How useful was this post

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post

Leave a Reply