Skip to content

Create new order from backend saves the credit card when it is told not to #19515

Closed
@justinharris1986

Description

@justinharris1986

Preconditions

  1. Magento 2.2.6
  2. PHP 7.1.24
  3. Apache 2.4.6-80.el7.centos.1
  4. Paypal Payflow Pro

Steps to reproduce

  1. Stores -> Configuration, Sales -> Payment Methods
  2. Configure an account - Most notibly Partner, User, Vendor, Password must all be configured. Enable this solution, Enable paypal credit, and vault enabled must all be set to yes. For testing purposes, Test mode must be set to yes. Save this config
  3. Go to Sales -> Orders, Click on Create New order in upper right, then click on an existing customer. (create an account of one does not exist first)
  4. Add a product to the order, complete the account information, and address information
  5. Complete the shipping method
  6. Select Credit card, input test credit card number from https://developer.paypal.com/developer/creditCardGenerator/
  7. note that "Save for later use" is unchecked, and should remain unchecked.
  8. Submit order, look for success

Expected result

  1. When you follow steps 3 through 5 above, and then click on "saved credit cards" the credit card you entered on step 6 above should NOT be saved and present
  2. When you navigate to the front end, and log in as the user, Navigate to My Account, Click on tored Payment Methods, you should the credit card you entered on step 6 above should NOT be saved and present

Actual result (*)

  1. When you follow steps 3 through 5 above, and then click on "saved credit cards" the credit card you entered on step 6 above IS saved and present
  2. When you navigate to the front end, and log in as the user, Navigate to My Account, Click on tored Payment Methods, you should the credit card you entered on step 6 above IS saved and present

Other notes:

  • The credit card is NOT stored in the front end, when the "save for later use box" is not checked (correct behavior)
  • The credit card IS stored in the front end, when the "save for later use box" is checked (correct behavior)
  • Running through steps 1-8 under "Steps to reproduce" but checking off "Save for later use" in step 7 still saves the credit card (correct behavior)

Metadata

Metadata

Assignees

Labels

Component: PaymentComponent: SalesEvent: mm19inFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions