This article describes a known Adobe Commerce 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.
An unspecific error is shown when guest checkout is disabled from the backend, and the PayPal through Braintree payment option is selected from the Mini-cart or Shopping Cart.
Prerequisites:
Steps to reproduce:
Expected results:
When a customer clicks on the PayPal button on the Mini-cart or 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 the PayPal button in the Mini-cart:
To check out, please sign in with your email address.
Actual results:
The customer is redirected to the Shopping Cart page, and the following message is displayed:
The customer email is missing. Enter and try again.
The workaround for this issue is that the customer can log in at a store (Logged-in users do not use guest checkout.) where guest checkout is disabled. This issue was fixed in Adobe Commerce version 2.4.2.