Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quote's outdated shipping address overwriting PayPal Express shipping address #8568

Merged
merged 4 commits into from
Apr 1, 2017

Conversation

torreytsui
Copy link
Contributor

@torreytsui torreytsui commented Feb 15, 2017

Issue

PayPal responded shipping address fail to save against quote on Braintree PayPal Express checkout

Preconditions

Magento EE 2.1.3

Steps to reproduce

  1. Log in to an account
  2. Add product to the basket
  3. Go to One Page Checkout
  4. Enter every shipping address details; select a shipping method; and continue to the payment step
  5. Don't proceed to payment; Go back to the basket and click PayPal Express checkout
  6. Enter paypal credential (or proceed with sandbox default address data); proceed

paypal-one-click-outdated-shipping-address

Expected Result

On braintree/paypal/review/, delivery address should show the PayPal's shipping address.

For sandbox, it should be:

Mr John Doe
123 Division Street
Apt. #1
Chicago, Greater Manchester, 60618
United States

paypal-one-click-expected-address

Actual Result

The delivery address shows the outdated shipping address which entered from One Page Checkout

PayPal One Click should only use the addresses returned from PayPal
@torreytsui torreytsui changed the title Fix quote's outdated shipping address overwritten PayPal shipping address Fix quote's outdated shipping address overwritten PayPal Express shipping address Feb 15, 2017
@torreytsui torreytsui changed the title Fix quote's outdated shipping address overwritten PayPal Express shipping address Fix quote's outdated shipping address overwriting PayPal Express shipping address Feb 15, 2017
@vrann vrann added this to the February 2017 milestone Feb 15, 2017
@vrann
Copy link
Contributor

vrann commented Feb 15, 2017

@torreytsui thank you for contribution, started verification

@vrann
Copy link
Contributor

vrann commented Feb 15, 2017

@torreytsui repeated the steps to reproduce, on the latest develop branch. The result is different from what is reported: after step 6, it opens up PayPal pop-up with the address which I entered on step 4:
screen shot 2017-02-15 at 4 25 18 pm

PayPal Express does not allow me to enter any other address. Am I doing something wrong?

@vrann vrann self-assigned this Feb 15, 2017
@joni-jones
Copy link
Contributor

Hi, @torreytsui, I've few important remarks:

@torreytsui
Copy link
Contributor Author

@vrann thanks for your response.

The popup is alright. I used full screen mode on Mac so it opened on a new tab instead. If you click change on the popup, you should be able to change your address; but it does not matter with this issue.

I can see the url on your screenshot is different from what I have. You were being redirected to checkoutnow/ while I were in one-touch-login-sandbox/.

Please also note that only Braintree PayPal Express has this issue, PayPal Express is alright.

Despite of the endpoint differences, I don't think it matter. If you keep going, when you arrive in the review page, you should be able to see the out dated shipping address rendered, as long as you have ever set a shipping address against quote (e.g., through one page checkout)

@torreytsui
Copy link
Contributor Author

@joni-jones Thanks for the feedbacks. I have updated the PR according to your first two points.

I'm looking into the region issue now. Will update it soon.

@vrann
Copy link
Contributor

vrann commented Feb 22, 2017

@torreytsui thank you for the update.
Yeah, I noticed later that you are using Braintree PayPal Express. Please finish the changes and I will re-test it again.

@maksek maksek modified the milestones: February 2017, March 2017 Mar 1, 2017
@okorshenko okorshenko added this to the March 2017 milestone Mar 1, 2017
@vrann
Copy link
Contributor

vrann commented Mar 3, 2017

@torreytsui Hi, just checking up is there something you can add to this PR any time soon?

@magento-team magento-team merged commit 60a2a21 into magento:develop Apr 1, 2017
magento-devops-reposync-svc pushed a commit that referenced this pull request Nov 5, 2023
AC-8477: /page_cache/block/esi handles param enhancement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants