Im trying to get fraudlabs to work with Magento and need to get a copy of the credit card number into the info.phtml template. Every time I try to copy the following code from ccsave.phtml and put it in the info.phtml file I get an error
<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br/>
The error states :
PHP Fatal error: Call to a member function getCcNumber() on a non-object
Any help greatly appreciated. I have not yet got my head around the way functions work in magento. An aswer to this will no doubt put it in perspective.
Your help would be greatly appreciated.