Payment section on checkout progress block is updating wrong details.
When you select saved cc method as payment method and click on continue after filling up all the required fields. the progress block updates itself with the details I have added in saved cc form.

enter image description here
Now, when I click on payment method again and select paypal as my payment method,

enter image description here enter image description here
It updates the payment section on progress block but it also displays me the credit card number.
Any help will be much appreciated.
Attached is the screenshot for my PayPal payment method.
enter image description here

  • Do you have any 3rd party extensions installed? If yes, try disabling them one by one. Also If you have any theme modifications try to revert them also. – user487772 May 2 '14 at 18:15
  • You tagged this question with both magento-1.7 and magento-1.8. Does it mean you are experiencing the issue in both versions? – user487772 May 2 '14 at 18:16
  • I have just tried this on fresh Magento installation with the same results. with both on Magento 1.7 and Magento 1.8. – Jaimin Sutariya May 3 '14 at 3:51
  • What type of PayPal are you using? With just "Credit Card (saved)" and "Check / Money order" the problem is not reproducible. – user487772 May 3 '14 at 9:44
  • 1
    @Rathinam, sorry but I am not aware of it – Jaimin Sutariya Apr 11 '17 at 9:53

I got the solution by overriding Paypal Info Block.
I updated

class Mage_Paypal_Block_Payment_Info extends Mage_Payment_Block_Info_Cc


class Mage_Paypal_Block_Payment_Info extends Mage_Payment_Block_Info

Now I don't see any information related to CC Save method with paypal Details. enter image description here


Mage_Paypal_Block_Payment_Info extends Mage_Payment_Block_Info_Cc and calls the parent _prepareSpecificInformation function. Since the quote still contains the credit cards information, when it gets to this conditional:

if ($this->getInfo()->getCcLast4()) {
    $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());

the credit card number is added to the data returned for display. Seems like Mage_Paypal_Block_Payment_Info should override getCcLast4 and return nothing like it does with getCcTypeName.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.