Home Joomla Virtuemart Show full credit card number in VirtueMart 1.1+ Backend.
Jul 31
Saturday
Show full credit card number in VirtueMart 1.1+ Backend. PDF Print E-mail
Written by Ron Bassett   
Tuesday, 17 February 2009 19:51

This article explains how to secure the Joomla backend using SSL so it is safe to show the full credit card number in VirtueMart. No more checking your email for the last for digits. Just login and have everything you need to process orders.

 

* **Notice: As of Joomla 1.0.12+ https is included in the admin. Just log in using https://***
This article explains how to secure the Joomla backend using SSL so it is safe to show the full credit card number in VirtueMart. No more checking your email for the last for digits. Just login and have everything you need to process orders. I am using Joomla 1.5 and VirtueMart 1.1, but I am sure it will work on most versions. As of Joomla 1.0.12 do not install the .htaccess file. Just change the code in your order.order_print.php file.
To force https access so that the creditcard number is always encrypted in the admin go to Admin > Configuration > Security. Make sure to highlight admin as in the picture below.

order print

To edit the file httpdocs/administrator/components/com_virtuemart/html/order.order_print.php i had to install NinJoomla. I Prefer eXtplorer but i have been unable to get it working with Joomla 1.5.

Now it is time to hack the order.order_print.php file.
Go to httpdocs/administrator/components/com_virtuemart/html/order.order_print.php.

Look around line 558. You will find code that resembles the below.

 

 
 558. echo ps_checkout::asterisk_pad( $dbaccount->f("account_number"),
 4, true ); 
 559. if( $dbaccount->f('order_payment_code')) { 
 560. echo '(' . $VM_LANG->_('VM_ORDER_PAYMENT_CCV_CODE')
 . ': '.$dbaccount->f('order_payment_code').') ';
 561. }
 

 

Modify the first line to match the below: Change the 4 to a 0.

 
 558. echo ps_checkout::asterisk_pad( $dbaccount->f("account_number"),
 0, true );
 559. if( $dbaccount->f('order_payment_code')) {
 560. echo '(' . $VM_LANG->_('VM_ORDER_PAYMENT_CCV_CODE')
 . ': '.$dbaccount->f('order_payment_code').') ';
 561. }
 

Save it and thats it. You can now view the full credit card number securely.

By Ron - with the help of VirtueMart forums

 
Home Joomla Virtuemart Show full credit card number in VirtueMart 1.1+ Backend.