RandallKent Posted February 20, 2010 Share Posted February 20, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
RandallKent Posted February 20, 2010 Author Share Posted February 20, 2010 Looks like the edit button has disappeared. Attached is a revision. quantum.zip 0 Quote Link to comment Share on other sites More sharing options...
plateaultd Posted July 25, 2010 Share Posted July 25, 2010 Thanks for sharing this. Any suggestions on best/easiest way to call this? 0 Quote Link to comment Share on other sites More sharing options...
RandallKent Posted September 3, 2010 Author Share Posted September 3, 2010 Hey plateaultd, Sorry for the late reply. To use this, you would need to call the method via your own code. For a simplier way to do this, check out http://forum.whmcs.com/showthread.php?p=161125 which can be run via cron or your web browser. -Randall 0 Quote Link to comment Share on other sites More sharing options...
RandallKent Posted September 3, 2010 Author Share Posted September 3, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.