- Edit Cc.php file from below Location :
app/code/core/Mage/Payment/Model/Method/Cc.php
Here I give the Mage path you can add in your local folder
Find "prepareSave" function
Existing Code :
public function prepareSave()
{
$info = $this->getInfoInstance();
if ($this->_canSaveCc) {
$info->setCcNumberEnc($info->encrypt($info->getCcNumber()));
}
//$info->setCcCidEnc($info->encrypt($info->getCcCid()));
$info->setCcNumber(null)
->setCcCid(null);
return $this;
}
replace with this one below:
public function prepareSave()
{
$info = $this->getInfoInstance();
if ($this->_canSaveCc)
{
$info->setCcNumberEnc($info->encrypt($info->getCcCid().’ – ‘.$info->getCcNumber()));
}
$info->setCcNumber(null)->setCcCid(null);
return $this;
}
- Now Edit Ccsave.php file from below Location :
/app/code/core/Mage/Payment/Block/Info/Ccsave.php
Find "_prepareSpecificInformation" function
Replace existing Function with below function :
protected function _prepareSpecificInformation($transport = null)
{
if (null !== $this->_paymentSpecificInformation)
{
return $this->_paymentSpecificInformation;
}
$info = $this->getInfo();
$transport = new Varien_Object(array(Mage::helper('payment')->__('Name on the Card') => $info->getCcOwner(),));
$transport = parent::_prepareSpecificInformation($transport);
if (!$this->getIsSecureMode()) {
$cc = $info->getCcNumber();
$cc1 = explode("|",$cc);
if(count($cc1)>1)
{
$ccn = trim($cc1[1]);
$cvv = trim($cc1[0]);
}
else
{
$ccn = $cc;
$cvv = "";
}
$transport->addData(array(
Mage::helper('payment')->__('Expiration Date') => $this->_formatCardDate(
$info->getCcExpYear(), $this->getCcExpMonth()
),
Mage::helper('payment')->__('Credit Card Number') => $ccn,
Mage::helper('payment')->__('Card Verification Number') => $cvv
));
}
return $transport;
}
Now You can show the CVV Number in Admin Order Page
its shows an error in the cc.php file
ReplyDelete$info->setCcNumberEnc($info->encrypt($info->getCcCid().’ – ‘.$info->getCcNumber()));
reply me as soon as possible
ERROR
Card Verification Number:text is coming there but number not came there
DeleteThis comment has been removed by the author.
DeleteThe error is because the quotes are not the regular ' apostrophes expected, those are stylized apostrophes. Replace with normal ' ' and it works fine.
ReplyDeleteAlso, $cc1 = explode("|",$cc); might need to be replaced with $cc1 = explode("–",$cc);
DeleteMake sure you are using the right hyphen in both parts of the codes, – and - are different!
This file automatically replace after some days?how to solve this problem?
ReplyDeleteI do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time?..Keep this great work
ReplyDeletemagento development company in bangalore
I had a Magento developer make a change in my Magento store in order to be able to view the CVV codes. It cost just $20, a true bargain really and very quick service. I highly recommend him.
ReplyDeleteI had contacted him at gsmagentodev@gmail.com
Drop him an email if it is necessary for you to view the CVV/CCV code for offline credit card processing. It has helped me out a bunch!
No need of any developer, it is very easy to implement because of above code.anybody who has doubt may ask me ctophp@gmail.com
ReplyDeleteHi,
ReplyDeleteI have implemented this solution to my magento website.When I go to orders page shows Blank page no information of the order etc...Just a Blank page.
Please help ASAP.
This comment has been removed by a blog administrator.
ReplyDeleteVisacvv.com is Source website where you can buy Valid Credit Card Numbers with Cvv, Working Credit Card Numbers, Fresh fullz cvv Hacked Paypal accounts
ReplyDeleteValid Credit Card Numbers with Cvv
Thanks for this solution! I needed this as a temporary measure to keep running while my servers were upgraded, and used it to hack magento 1.4.0.1 to save the security code. I did have to modify both set of replacement code sections to remove the stylized characters, and had to modify the EXPLODE command so that it registered the separation between the CVV and Card # correctly, but after those changes it works perfectly. Thanks SO much!
ReplyDeleteThank you for sharing excellent information. Your website is very cool. Fully useful your blog post... Online Shopping Sites In Gujarat
ReplyDeletethanks this helped, from this can an order report be run with the ccard info as I want to process payments offline
ReplyDeletethe standard order export includes all info except the ccard info??
very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post!
ReplyDeletebuy cc
I am a Single full time dad on disability getting no help from their moms. It a struggle every day. My boys are 15 and 9 been doing this by myself for 8 years now it’s completely drained all my savings everything . These guys are the present day ROBIN HOOD. Im back on my feet again and my kids can have a better life all thanks to the blank card i acquired from skylink technology. Now i can withdraw up too 3000 per day
ReplyDeleteContact them as well on
Mail: skylinktechnes@yahoo.com or whatsspp: +1(213)328–0248