Skip to content

Payment information does not save #3729

@OleksiyOleksiyovych

Description

@OleksiyOleksiyovych

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;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions