Do you want to accept credit cards on your website and save users confusion and time? This credit card gateway extension for WHMCS lets you accept credit card payments directly on your website via Stripe payment gateway.
With this extension your customer can use their credit cards during the checkout process and Stripe.com handles the rest. This means a smoother experience for your users as they never have to leave your website for making payments.
This is a free and open source Stripe Payment Gateway for WHMCS that supports one time and recurring payments without ever having a credit card number hit your WHMCS server.
Stripe pay payment gateway allows the WHMCS billing system to use Stripe’s one time and reoccurring payment gateway capabilities. Stripe provides the unique ability to take a client’s credit card information without ever having the client leave your site, but it also allows for credit card data to never get stored in or even pass through your own server, eliminating costly concerns over PCI compliance. This gateway for WHMCS is being released free for anyone, although it should still be considered in beta as there are likely still bugs to work out of it.
You can sign up for a Stripe account at https://stripe.com.
Stripe API version :
- Stripe API 4.12.0 (Release date 05/06/2017)
- A Stripe Elements integration with js version v3
- PHP 5.3.3 and later.
- WHMCS (V7.X, V6.X)
- cURL must be enabled (This is most likely already enabled on your server, but you can contact your hosting provider if you are unsure)
- SSL certificate installed (in order to process live transactions)
- Stripe merchant account
Instructions For Use :
- Copy the file in the repository’s root folder called
stripe.phpand place it into the
/modules/gateways/folder of your WHMCS installation.
- From within the
callbackfolder of the repository, copy the other
stripe.phpfile and place it into the
/modules/gateways/callbackfolder of your WHMCS installation.
- Copy the
ccpay.phpfile from the repository into the root directory of your WHMCS installation.
- Finally, copy the
clientareacreditcard-stripe.tplfile into the root level of the theme folder you are currently using for WHMCS. For example, if you’re using the
defaulttheme, then copy this file to
- Add a webhook in Stripe to
In the end, your folder structure should look roughly like the diagram below, with a ccpay.php file in the root of your install, a stripe.php in
/modules/gateways/callback, a stripe.php in
clientareacreditcard-stripe.tpl in the root of your WHMCS active template folder, and the
lib folder of the Stripe API in the newly-created
|-- stripe (contains the lib folder of the Stripe PHP API)
|-- ... (files from Stripe API)
|-- ... (files from Stripe API)
|-- Stripe.php (Stripe API core file)
|-- yourtemplatename (i.e. default)
You may now activate this new payment gateway from within WHMCS through the Setup > Payments > Payment Gateways screen. This module should be listed as Stripe. You can then fill in the appropriate API key information as well as a required email address where the gateway can send you any serious errors that come up while billing clients or communicating with Stripe.
To download source code Click here !!!
Fork on Github
Support Information :
I’m always looking to improve this code, so if you see something that can be changed or if you have an idea for a new feature or any other feedback, send me an email to
email@example.com, or send me a message on Twitter (
@starsagar91), and I’ll get right back to you. If you decide to use this module in your WHMCS install, send me a message to say hello (and let me know what you think too) and it’ll make my day. Thanks!
Leave a Reply