magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

PayPal Express Checkout error "Failed address validation: %1" on Guest checkout

Open kamzata opened this issue 1 year ago • 4 comments

Still present for me in Magento 2.4.7-p1 no matter if:

  • Skip Order Review Step option is set to Yes or No.
  • Enable Automatic Assignment to Customer Group is set or not.

This seems to solve the issue.

        ...

        public function place($token, $shippingMethodCode = null)
        {
            if ($shippingMethodCode) {
                $this->updateShippingMethod($shippingMethodCode);
            }
    
            if ($this->getCheckoutMethod() == \Magento\Checkout\Model\Type\Onepage::METHOD_GUEST) {
                $this->prepareGuestQuote();
            }
    
            $this->ignoreAddressValidation();
            $this->_quote->collectTotals();
            

            // (BUG) SET CUSTOMER EMAIL IF EMAIL IS FOUND EMPTY
            if ($this->_quote->getCustomerEmail() === null && $this->_quote->getBillingAddress()->getEmail() !== null) {
            $this->_quote->setCustomerEmail($this->_quote->getBillingAddress()->getEmail());
            // (BUG) END

            $order = $this->quoteManagement->submit($this->_quote);
    
            if (!$order) {
                return;
            }
    
            // commence redirecting to finish payment, if paypal requires it
            if ($order->getPayment()->getAdditionalInformation(self::PAYMENT_INFO_TRANSPORT_REDIRECT)) {
                $this->_redirectUrl = $this->_config->getExpressCheckoutCompleteUrl($token);
            }
            ....

Correlated to:

#29473 #25399

Originally posted by @kamzata in https://github.com/magento/magento2/issues/25399#issuecomment-2308482597

kamzata avatar Aug 25 '24 09:08 kamzata

Hi @kamzata. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

m2-assistant[bot] avatar Aug 25 '24 09:08 m2-assistant[bot]

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • [ ] 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • [ ] 5. Add label Issue: Confirmed once verification is complete.
  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Aug 26 '24 04:08 m2-assistant[bot]

Hi @kamzata,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the attached video.

https://github.com/user-attachments/assets/d57575d7-98e7-4f0c-9c32-155711e1aa6c

We are able to place the order with Paypal Express checkout using checkout.

Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

engcom-Bravo avatar Aug 29 '24 08:08 engcom-Bravo

Hi @kamzata,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the attached video.

Screen.Recording.2024-08-29.at.11.34.48.mov We are able to place the order with Paypal Express checkout using checkout.

Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

I don't know why but now it seems to work for me too. However, I'm not able to see the block for creating an account:

image

kamzata avatar Aug 29 '24 09:08 kamzata

Hi @kamzata,

Thanks for your update.

As per this comment https://github.com/magento/magento2/issues/39107#issuecomment-2317190047 since the issue is no more reproducible and we are able to see the customer block as well.Hence we are closing this issue.

Thanks.

engcom-Bravo avatar Aug 30 '24 05:08 engcom-Bravo