PayPal Express Checkout error "Failed address validation: %1" on Guest checkout
Still present for me in Magento 2.4.7-p1 no matter if:
-
Skip Order Review Stepoption is set toYesorNo. -
Enable Automatic Assignment to Customer Groupis 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
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:
-
@magento give me 2.4-develop instance- upcoming 2.4.x release - For more details, review the Magento Contributor Assistant documentation.
- Add a comment to assign the issue:
@magento I am working on this - To learn more about issue processing workflow, refer to the Code Contributions.
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.
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: XXXXXlabel to the ticket, indicating the functional areas it may be related to. - [ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced 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: Confirmedonce verification is complete. - [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
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.
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:
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.