This article describes a known Magento 2.4.1 issue where if guest checkout is disabled, a guest customer trying to place an order with PayPal through Braintree gets a non-informative error message.
Affected products and versions
- Magento Commerce 2.4.0, 2.4.1
- Magento Commerce Cloud 2.4.0, 2.4.1
Issue
When guest checkout is disabled from the backend, and the PayPal through Braintree payment option is selected from the minicart or shopping cart, an unspecific error is shown.
Prerequisites:
- In Magento Admin, under Stores > Configuration > Sales > Checkout, set Allow Guest Checkout = No.
- Enable PayPal through Braintree as described in Braintree section of Magento User Guide.
Steps to reproduce:
- Add product to cart as a guest.
- Select Minicart and click Pay with PayPal.
- Complete the Paypal checkout, and then you will land on the Order Review page.
- Select shipping method.
- Click Place Order.
Expected result
When a customer clicks on the PayPal button on mini-cart or on the Shopping Cart page, the following message should be displayed to the customer:
To check out, please sign in with your email address.
If you enable direct Paypal without using Braintree, this scenario behaves differently. It doesn't allow the guest user to continue with the payment process. It will show the following message when the guest user clicks on PayPal button in the minicart:
To check out, please sign in with your email address.
Actual result
The customer is redirected to the Shopping Cart page and shows the following message:
The customer email is missing. Enter and try again.
Workaround
The workaround for this issue is the customer can log in at a store instead (Logged-in users do not use guest checkout.) where guest checkout is disabled.
This issue is scheduled to be resolved in Magento version 2.4.2, which is scheduled for release in Q1 2021.