Feature request from OleksiyOleksiyovych, posted on GitHub Mar 11, 2016
Steps to reproduce
- Install Magento from
master
branch. Version 2.0.2
- Go to Store - Configuration - Sales - Payment Methods
- Configure PayPal PayFlow Pro
- Start create order process
Expected result
- Validate credit card number before request to PayPal.
- Save information cc_exp_month and cc_exp_year in 'sales_order_payment' table
Actual result
- can enter any chapters into credit card field
- 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;