cancel
Showing results for 
Search instead for 
Did you mean: 

Payment information does not save

Payment information does not save

Feature request from OleksiyOleksiyovych, posted on GitHub Mar 11, 2016

Steps to reproduce

  1. Install Magento from master branch. Version 2.0.2
  2. Go to Store - Configuration - Sales - Payment Methods
  3. Configure PayPal PayFlow Pro
  4. Start create order process

Expected result

  1. Validate credit card number before request to PayPal.
  2. Save information cc_exp_month and cc_exp_year in 'sales_order_payment' table

Actual result

  1. can enter any chapters into credit card field
  2. cc_exp_month and cc_exp_year did not save in sales_order_payment

Additional information

Saving cc_exp_month and cc_exp_year is important for me, because I need this information for reauthorization process. It works well in Magento 1.x. Maybe, this logic is missed in M2, because I can not find save process of this information like in M1. Also I found initialization of $_canSaveCc field, but I can not find where it field using. It was use in prepareSave() method (app/code/core/Mage/Payment/Model/Method/Cc.php) in M1.

.//app/code/Magento/Braintree/Model/PaymentMethod.php:93: protected $_canSaveCc = false; .//app/code/Magento/Payment/Model/Method/Cc.php:27: protected $_canSaveCc = false; .//app/code/Magento/Paypal/Model/Direct.php:96: protected $_canSaveCc = false; .//app/code/Magento/Paypal/Model/Hostedpro.php:64: protected $_canSaveCc = false; .//app/code/Magento/Paypal/Model/Payflowpro.php:203: protected $_canSaveCc = false;

5 Comments
apiuser
New Member
Status changed to: Investigating
 
apiuser
New Member

Comment from OleksiyOleksiyovych, posted on GitHub Mar 11, 2016

I have tried on develop branch and cc_exp_month and cc_exp_year saved well. But credit card field does not validate https://www.dropbox.com/s/gj9inu4jdcvuv65/Screenshot%202016-03-11%2012.16.30.png

apiuser
New Member

Comment from piotrekkaminski, posted on GitHub Jun 14, 2016

@asemenenko can you review?

apiuser
New Member

Comment from viktym, posted on GitHub Sep 29, 2016

Hi @OleksiyOleksiyovych

We've created internal ticket MAGETWO-59147 regarding validation credit card number on backend. Issue with saving information cc_exp_month and cc_exp_year in 'sales_order_payment' table was fixed in 2.1.x releases and develop branch. Also fix will be delivered in 2.0.11 patch release.

Thanks for the feedback.

apiuser
New Member

Comment from piotrekkaminski, posted on GitHub Sep 30, 2016

This issue will be moved to Ideas forum as the improvement component (validation) is not yet scheduled. The bug (not saving the CC information) was fixed and is available already.