How to setup Stripe (live and test mode) in WooCommerce?
In this guide, learn how to setup Stripe on your WooCommerce store.
Before we begin you need to make sure that you have downloaded the official Stripe plugin from the WooCommerce marketplace.
Ensure this plugin is installed, active, and setup correctly!
If you are more of a visual learner, follow along to my quick and easy video below (over 10,000 views!).
Let’s jump into it!
How to setup Stripe on WooCommerce?
1. Enable Stripe in WooCommerce
The first step is to go to your WordPress dashboard, hover over WooCommerce, and go to the Settings.
Next, click the Payments tab.
Finally, click the checkbox to enable Enable Stripe Payment Method and click Setup/Manage.
If you have not created a Stripe account yet, create a business account before proceeding. You will need a business account to get your API keys from Stripe.
2. Get Stripe account keys
Next, add in your Stripe account keys.
To get your Stripe account keys, you will need to login to your Stripe dashboard.
From the Stripe dashboard, click Developers > API keys.
Then, you will be able to view your publishable and secret keys. Copy these values.
Then, paste these values in the API credentials section. Save Changes.
Next, from the Stripe dashboard, click “add endpoint”, and copy the webhook endpoint in WooCommerce and paste this value in the endpoint url in Stripe.
Finally, copy the webhook secret in Stripe and paste this value in WooCommerce.
Don’t forget to click ‘Save Changes’ in WooCommerce.
3. Test that Stripe is working
Finally, do a live transaction on your site using Stripe. Open up a browser on your phone or computer and go to your website and add one of your products to Cart.
You should see the option to pay with a credit card.
If you do not see this option, you may also have to clear your cache.
Pro tip: Update 1 product in your store to be $1 and do a real transaction using Stripe to make sure everything is working!
How to setup Stripe test mode on WooCommerce?
On your WordPress dashboard, hover over WooCommerce and click Settings.
Next, click the Payments tab and click Manage next to Stripe.
Under Webhook Endpoints, find “Test mode” and click “Enable Test Mode”.
If you scroll down to your Stripe settings page, you will notice we need to insert our Test Publishable Key, Test Secret Key, and Test Webhook Secret.
To get these we need to go to your Stripe Developer account, and Sign In.
On your Stripe Dashboard, under Developers on the sidebar click API keys. Then toggle ‘View Test Data’ in the top right. and copy and paste the new Test Publishable Key and Test Secret Key into WooCommerce.
Next, copy and paste the new Test Publishable Key and Test Secret Key into your WooCommerce Stripe settings.
Click Save changes.
Your Stripe sandbox account is all set up.
Learn how to setup Stripe (live and test mode) in WooCommerce in my video tutorial:
Visa, Mastercard, American Express, Discover, Diners Club, JCB.
It’s always best practice to do test transactions on your Ecommerce store before accepting real payments. This ensures that any automations/triggers that you have setup in conjuncture with Stripe are working properly.
Some of Stripe’s restricted businesses include the following:
- Drug paraphernalia
- Pseudo pharmaceuticals
- Multi-level marketing
- Firearms & Ammunition
- Adult content and services
- Counterfeit or unauthorized goods.
If your business falls into one of the categories above, a good alternative is Authorize.Net.
See the video below for how to setup Authorize.Net in WooCommerce:
The money will automatically go into your Stripe account. Then, Stripe will deposit the money into your bank account. Stripe currently has three payout options (daily, weekly, monthly). For example, it takes seven calendar days from a payment being received to it being paid out for Stripe accounts on a 7 calendar day schedule and takes 1 calendar from a payment being received to it being paid out for Stripe accounts on a 1 day schedule.
See more information here: https://stripe.com/docs/payouts
This depends on the payout timing you have with Stripe, but typically it takes 2 business days to receive the money from your Stripe Account to your Bank Account.
For example, payments received on a Tuesday are paid out by Thursday, and payments received on a Friday are paid out by Tuesday.
Pro Tip: When you start processing live payments from your customers with Stripe, you won’t receive your first payout until 7–10 days after receiving your first successful payment.
See the Stripe documentation for more information: https://stripe.com/docs/payouts
Yes, Stripe accepts recurring payments and works on WooCommerce Subscriptions.