WooCommerce

plus-sign-simple

Integrate WooCommerce and Stripe

Trexle connects WooCommerce to Stripe and 100+ other payment gateways using a single plugin for one time annual fee

Stripe and WooCommerce Integration Guide

To integrate Stripe with Trexle, you will need your Stripe standard API Publishable and Secret keys. You can obtain those as follows..

Login to your Stripe dashboard, and find the “Developers” link on the left menu, click it and it will give you the “API keys” sub menu as seen below.

For security reasons, Stripe asks you to click “reveal private key token” which will ask you for your Stripe username and password again.

After providing your username and password, click the “Authenticate” button in blue and your live API secret key will be revealed. Make a note of the two API keys as you will need to add them to Trexle dashboard.

Take the credentials you just obtained from Stripe and navigate to Trexle dashboard, click Payments Gateways and select Stripe from the drop down menu as shown below.

Fill into your Stripe credential and click Add Gateway. Click the Activate button next to Stripe, and it will give you a success message and the button will turn into green. You should see something like below.

To integrate Stripe and WooCommerce you need Trexle API keys

Install WooTrexle WordPress plugin by navigating in your dashboard to Plugins/Add new, search for Trexle, install and activate. You can also download WooTrexle from WordPress or from Trexle Github Repository, unzip the plugin into your WordPress plugins directory and activate it.

In WooCommerce/Settings/Checkout, click on “Trexle” and configure the plugin and fill in your Trexle API keys. Click “Save”.

Create a test product, and test the normal customer checkout.

4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
5555555555554444 Mastercard
5200828282828210 Mastercard (debit)
5105105105105100 Mastercard (prepaid)
378282246310005 American Express
371449635398431 American Express
6011111111111117 Discover
6011000990139424 Discover
30569309025904 Diners Club
38520000023237 Diners Club
3530111333300000 JCB
3566002020360505 JCB

3D Secure test card numbers

4000000000003055
4000000000003063
378282246310005

Testing for specific responses and error

4000000000000077 Charge succeeds and funds will be added directly to your available balance (bypassing your pending balance).
4000000000000093 Charge succeeds and domestic pricing is used (other test cards use international pricing). This card is only significant in countries with split pricing.
4000000000000010 The address_line1_check and address_zip_check verifications fail. If your account is blocking payments that fail ZIP code validation, the charge is declined.
4000000000000028 Charge succeeds but the address_line1_check verification fails.
4000000000000036 The address_zip_check verification fails. If your account is blocking payments that fail ZIP code validation, the charge is declined.
4000000000000044 Charge succeeds but the address_zip_check and address_line1_check verifications are both unavailable.
4000000000000101 If a CVC number is provided, the cvc_check fails. If your account is blocking payments that fail CVC code validation, the charge is declined.
4000000000000341 Attaching this card to a Customer object succeeds, but attempts to charge the customer fail.
4000000000009235 Charge succeeds with a risk_level of elevated and placed into review.
4000000000000002 Charge is declined with a card_declined code.
4100000000000019 Charge is declined with a card_declined code and a fraudulent reason.
4000000000000127 Charge is declined with an incorrect_cvc code.
4000000000000069 Charge is declined with an expired_card code.
4000000000000119 Charge is declined with a processing_error code.
4242424242424241 Charge is declined with an incorrect_number code as the card number fails the Luhn check.

378282246310005 American Express
371449635398431 American Express
6011111111111117 Discover
3530111333300000 JCB
6304000000000000 Maestro
5555555555554444 Mastercard
2223000048400011 Mastercard
4111111111111111 Visa
4005519200000004 Visa
4009348888881881 Visa
4012000033330026 Visa
4012000077777777 Visa
4012888888881881 Visa
4217651111111119 Visa
4500600000000061 Visa
4000111111111115 Visa processor declined
5105105105105100 Mastercard processor declined
378734493671000 American Express processor declined
6011000990139424 Discover processor declined
3566002020360505 JCB failed (3000)

370000000000002 American Express Test Card
6011000000000012 Discover Test Card
5424000000000015 MasterCard Test Card
4007000000027 Visa Test Card
4012888818888 Visa Test Card
4222222222222 Visa Error Test

Other integrations between Stripe and Woocommerce

Official WooCommerce Stripe Extension


The Stripe plugin for WooCommerce allows you to take payments directly on your store via Stripe’s API, including Apple Pay for mobile and desktop.

The extension is provided by WooCommerce and is Free

Non Official WordPress Stripe Plugin


This plugin acts as an addon for woocommerce to add a payment method for WooCommerce for accepting Credit Cards Payments by merchants via Stripe directly on checkout page.

The extension is provided by Syed Nazrul Hassan and is Free

Stripe Supported Countries

Stripe Supported Payment Processing Actions

✔ Purchase
✔ Authorize
✔ Capture
✔ Void
✔ Credit
✔ Recurring
✔ Card Store

Key Features

Credit Card Vault: securely store your customers sensitive credit card data using tokens.
Instant PCI-DSS Compliance: your customers credit card data never touches your site or server.
Multiple Gateway Support: Connect your WooCommerce site to 100+ payment gateway

About Trexle

Trexle is a powerful online recurring subscription billing platform that integrate Stripe and other +100 payment gateways with WooCommerce and other dozen of e-commerce platforms.

About Stripe

Stripe is an American technology company, operating in over 25 countries, that allows both private individuals and businesses to accept payments over the Internet. Stripe focuses on providing the technical, fraud prevention, and banking infrastructure required to operate online payment systems.

About WooCommerce

WooCommerce is an open source e-commerce plugin for WordPress. It is designed for small to large-sized online merchants using WordPress. Launched on September 27, 2011, the plugin quickly became popular for its simplicity to install and customize and free base product.

Cart