Integrate WHMCS and Cardstream

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

Cardstream and WHMCS Integration Guide

You will need the following information to integrate with the Payment Gateway using the Direct integration method; Cardstream Merchant ID. Your Merchant ID enables you to access and communicate with the Payment Gateway. Please note that these details will differ to the login supplied to access the administration panel. You should have received these details when your account was set up.
You may also use test Merchant IDs (if you have been issued with a test ID) and swap these for your live account details when you receive them.
Integration URL https://gateway.cardstream.com/direct/
New Merchants who have not yet received their live Merchant ID can still perform an integration for testing purposes. Simply enter one of the test Merchant IDs below and use the test cards provided  to run a test transaction.

For non 3-D Secure testing use Merchant ID 100001
For 3-D Secure Testing use Merchant ID 100856

Please note that the field names are cAsE sEnSiTiVe.

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

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

To integrate Cardstream and WHMCS you need Trexle API keys

How to install Trexle extension to WHMCS

  1. Download Trexle extension from Trexle- WHMCS Github repository or from WHMCS Marketplace.

  1. Use your cPanel file manager or ftp to upload the downloaded extension to the modules/addons folder of your WHMCS installation


  1. Go to your WHMCS admin panel Addons section

  1. Click on Your Addons link in the left menu, and you will see your newly uploaded Trexle extension .

  1. Click on the Activate link to the right side of the newly uploaded Trexle addon

You have successfully added Trexle extension to your WHMCS.

Create a test product, logout from your admin session and test the checkout as a regular customer.

Visa Debit
Card Number CVV Number Address
4539791001730106 CVV 289
Unit 5
Pickwick Walk
120 Uxbridge Road
Hatch End
4462000000000003 CVV 672
Mews 57
Ladybird Drive
Denmark 65890


MasterCard Credit
Card Number CVV Number Address
5301250070000191 419
25 The Larches
LE10 2RT
5413339000001000 304
Pear Tree Cottage
The Green
Milton Keynes
MK11 7UY
5434849999999951 470
34a Rubbery Close
Cloisters Run
CV21 8JT
5434849999999993 557
4-7 The Hay Market
NG32 4HG

MasterCard Debit
Card Number CVV Number Address
5573 4712 3456 7898 159
Merevale Avenue
LE10 2BU
UK Maestro
Card Number CVV Number Address
6759 0150 5012 3445 002 309
The Parkway
5258 Larches Approach
North Humberside
HU10 5OP
6759 0168 0000 0120 097 701
The Manor
Wolvey Road


Card Number CVV Number Address
3540599999991047 209
2 Middle Wallop
Card Number CVV Number Address
4917480000000008 009
5-6 Ross Avenue
B67 8UJ


American Express
Card Number CVV Number Address
374245455400001 4887
The Hunts Way
SO18 1GW
Diners Club
Card Number

Cardstream Supported Countries

Cardstream 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 WHMCS site to 100+ payment gateway

About Trexle

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

About Cardstream

Cardstream has developed a modern payment gateway technology and management platform which has the capability to be fully white labeled. With a fully branded payment gateway, their resellers are able to offer their own in-house payment gateway solution to their own merchants. They already have many white label resellers, including Acquirers, Payment Facilitators, Independent Sales Organisations, and Software Vendors who use our state of the art technology to deliver a reliable, easy to use and secure card processing solution.


WHMCS is the leading web hosting management and billing software that automates all aspects of your business from billing, provisioning, domain reselling, support, and more. WHMCS easily integrates with all the leading control panels, payment processors, domain registrars and cloud service providers.