Jump to content

Pull last 4 and card type from Quantum Vault


RandallKent

Recommended Posts

Hi All,

 

After recently switching to the Quantum Vault payment module we noticed that some information we frequently use when speaking clients was not available under "Manage Credit Card Information" (the last 4 digits and card type).

 

I hacked together a script to keep everything updated and attached to this post is the function used to do the heavy lifting. To use this, simply configure your database connection info and feed the function a client id and it will populate the last 4 digits and type of card to the "Manage Credit Card Information" section of WHMCS.

 

It would be great to also populate the expiration date, but it seems those field are encrypted, and not reachable via the API.

 

Hope this can help someone else :)

 

 

-Randall

quantum.zip

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...

Hi All,

 

Attached is an updated version of the scipt which now utilizes the WHMCS API which now supports setting the expiration date!

 

Features

* Updates WHMCS with last 4 digits from Quantum Vault

* Updates WHMCS with card type from Quantum Vault

* Updates WHMCS with standardized expiration date from Quantum Vault

* Support for calls to WHMCS API over http as well as https

 

Usage

1. Configure MySQL and WHMCS Variables

2. Upload this script to your web server

4. Include this quantum.php in your code

3. Call the whmcs_cc_update() method from your code passing it a client id

 

This script comes as is with no warranty, use at your own risk. Create a backup before running!

 

Find the script useful? Consider donating here

 

Enjoy :)

 

 

-Randall

quantum.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated