The Stripe payment gateway for WooCommerce lets you accept payments directly onsite, and includes the option to accept ApplePay and Bitcoin
Installation ↑ Back to top
- Go to Plugins > Add New on your WordPress site.
- Enter WooCommerce Stripe in the Search Plugins bar. Author is Automattic/WooCommerce.
- Click Install Now and Activate.
To learn more, see Installing and Managing Plugins.
Setup and Configuration ↑ Back to top
- Go to: WooCommerce > Settings > Checkout > Stripe.
- Tick the Enable Stripe checkbox. Untick to disable.
- Enter a Title (required) and Description (optional) seen by the customer during checkout.
- Tick the Enable Test Mode checkbox, if you wish to test before going live. Untick to begin accepting payments with Stripe.
- Enter your Live Secret Key and Live Publishable Key (obtained from your Stripe account). The Test Secret Key and Test Publishable Key are different and should only be used when Enable Test Mode selected in step 4.
- Enter Statement Descriptor, a description that appears on a customer’s credit card statement.
- Tick the checkbox to Capture Charge Immediately (Authorize and Capture) or untick to only Authorize. If you untick the box, you need to capture funds manually for each order via the order screen.
- Enable Stripe Checkout if you prefer a popup to request details, the ability to accept Bitcoin and using a checkout image. See next section Stripe Checkout to understand how it appears for customers.
- Enable Payment Request API (optional) if you wish to give customers the ability to pay via the API (must be supported by their browser).
- Enable Apple Pay if you wish to give customers with an iOS 10+ device and Safari-based web browser the option to pay using Apple Pay.
- Select Black or White for Apple Pay Button Style
- Enter two-digit ISO code for Language. Default is en for English. Other languages, see: http://www.w3schools.com/tags/ref_language_codes.asp
- Accept the Apple Pay Terms of Service (ToS). This is mandatory or you will receive an error.
- Saved Cards, if you want to give Stripe customers the ability to use a card saved on their account for future purchases.
- Log Debug Messages, if you wish to save logs that can help you/us troubleshoot your site. Can be disabled and enabled as needed.
- Save Changes.
Stripe Checkout ↑ Back to top
If you tick the box for Enable Stripe Checkout, more options will appear:
- Stripe Checkout locale: English is default. Chinese, Dutch, French, German, Italian, Japanese and Spanish are also offered. Auto-displays user’s preferred language, if available.
- Enable Bitcoin Currency: Tick the box if you would like to accept Bitcoin via Stripe.
- Stripe Checkout Image: Enter the URL of a 128×128 px image/logo to be displayed in checkout. Use an image already uploaded to your site or upload one now at Media > Add New.
Enable Stripe Checkout refers to this service: https://stripe.com/blog/stripe-checkout Instead of an inline payment form, which is the default setting, a pop-up is used to collect credit card details from the user.
Apple Pay ↑ Back to top
Customer Usage ↑ Back to top
Customers pay on the checkout page. Using a new card, they see the following:
When ApplePay is enabled, customers see a Buy with ApplePay button:
On the ‘My Account’ page, customers can add, view, and remove cards from their account:
FAQ ↑ Back to top
The method is not showing. ↑ Back to top
Apple Pay is not showing. ↑ Back to top
The customer must have a device with iOS 10+ and be using a Safari-based web browser. Otherwise the option is unavailable.
Apple Pay – I am getting this error “Error: Unable to copy domain association file to domain root” ↑ Back to top
That could mean your server configuration is not allowing files/paths to be written in that location. You would have to manually do this by following the step outlined here
Apple Pay – I am getting this error “Error: Unable to verify domain – Bad Request” ↑ Back to top
Try manually doing this by following the step outlined here
Can I test Apple Pay? ↑ Back to top
Yes, please follow the link here for instructions Apple Pay Testing
Can I hide the Apple Pay button on the single product / cart / checkout pages? ↑ Back to top
Yes you can! As we do not recommend using CSS to do so, we encourage you to follow this tutorial.
When switching from the paid Stripe gateway to the free version, will my settings be saved? ↑ Back to top
Yes, after installing the free Stripe 3.X version, your settings from the paid Stripe 2.612 version will carry over.
Can I use Apple Pay for recurring/subscription-based payments? ↑ Back to top
Not at this time. This feature is currently unsupported. The Apple Pay button stays hidden for recurring payments associated with a subscription.
Can a single customer have multiple subscriptions? ↑ Back to top
Using the WooCommerce Stripe extension and WooCommerce Subscriptions, you can have multiple subscriptions in your WooCommerce store. It should be noted that WC Subscriptions and the WC Stripe extension don’t use Stripe’s Recurring Plan feature, but instead manage subscriptions in WooCommerce and use token billing for each recurring payment.
Is it possible to override templates on the checkout page? ↑ Back to top
Yes. This extension only has one template, which is: saved-cards.php. To override it, copy the original template from wp-content/plugins/woocommerce-gateway-stripe/templates/ and place it in the wp-content/themes/your-theme-name/woocommerce-gateway-stripe/ folder. Open and edit as you wish.
What version of the Stripe API does this plugin use? ↑ Back to top
This plugin uses v1 of the Stripe API.
Does this extension support Bitcoin? ↑ Back to top
Yes, it does. As of version 2.4.0, Stripe accepts payment in Bitcoin (WooCommerce > Settings > Checkout > Stripe > Enable Bitcoin Currency). Refunds can be issued via the Stripe Dashboard and will require the customer’s Bitcoin address. See Changelog.
Recurring and repeat payments with Bitcoin are not currently supported. Bitcoin may only be used for a one-time payment. More at: Stripe – Bitcoin Guide.
Does this extension support Stripe Connect? ↑ Back to top
No, not currently; we’re unable to integrate at this time.
Does Stripe use AVS – Address Verification System? ↑ Back to top
Yes! This is enabled in your Stripe account dashboard and will then work in WooCommerce. See Stripe’s documentation about Avoiding fraud and disputes.
Does Stripe Support Authorization and Capture? ↑ Back to top
Yes! This is an option in the extension settings. Charges can be captured from within the WooCommerce dashboard. Please note that un-captured authorizations will expire after 7 days.
When the Stripe payment gateway is set to authorize, orders made via Stripe will have the status on hold and the following note:
Change the order status to processing or completed to take payment or cancel the order to remove the pre-authorization.
Does Stripe allow refunds inside WooCommerce? ↑ Back to top
Yes. More info at: WooCommerce Refunds.
Does Stripe Support ACH? ↑ Back to top
The Stripe plugin from WooCommerce does not support ACH.
Why aren’t my subscriptions displayed in the Stripe Dashboard? ↑ Back to top
WooCommerce Subscriptions does not use the Stripe Subscriptions feature. Instead, it uses a Stripe Customer and Card token and controls the processing of recurring payments.
This avoids many potential issues that could occur by trying to keep two copies of each subscription’s data in sync on two different systems (one in your store and one at Stripe). It also and makes it possible for Stripe to support all of WooCommerce Subscriptions’ features, like payment date changes, rather than only those the Stripe Subscriptions allows.
Because of this, you will not see subscriptions created with WooCommerce in your Stripe Dashboard as Subscriptions. This does not mean recurring payments will not be processed. As long as your store is running correctly, recurring payments will be processed correctly and will show up in the Stripe Dashboard as Payments.
Do I need to enable “Saved Card” to process subscriptions? ↑ Back to top
Subscriptions have its own mechanism of saving credit card details. When a customer buys a subscription product, Stripe will create a special payment token that will use the same credit card details for future subscription payments. Saving the same card again on the customer’s account is not necessary, unless you want to allow the customer to reuse the card for other purchases in your store.
Troubleshooting ↑ Back to top
Root Relative URLs ↑ Back to top
There are known issues with the Root Relative URLs plugin. You will not be able to use this with Stripe.
- Failing to load scripts – Stripe loads 2 JS files which it needs to function. If these are not loaded you will see errors. The most common reasons for not loading are:
- A theme missing wp_head() or wp_footer() calls
- Old overridden template files from WooCommerce inside your theme
- Loading headers/footers in a non-standard way. WooCommerce uses get_header()’s get_header action to init the checkout and load scripts. If you are not using get_header() you either need to do so, or you need to trigger the get_header action manually using: do_action( ‘get_header ); in your custom header loader.
I’m getting an API error. ↑ Back to top
Ensure that you have input the correct keys. If you are in live mode, you should have entered live keys (not test keys).
- If you are using test mode, keys are prepended with sk_test and pk_test.
- If you are using live mode, keys are prepended with sk_live and pk_live.
I’m seeing the error “Could not find payment information.” ↑ Back to top
This usually means that test mode is still enabled while using live keys, or that test keys are being used in live mode.