-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Paypal express checkout displays Object Object instead of actual error messsage in checkout #39736
Comments
Hi @xtremevision. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
@magento give me 2.4-develop instance |
@magento I am working on this |
Hi @xtremevision! 👋 |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @xtremevision, Thanks for your reporting and collaboration. We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.kindly refer the attached video. Screen.Recording.2025-03-21.at.3.02.01.pm.movAfter adding an address only we are able to select payment method as paypal and we are able to place the order.Could you please let us know if we are missing anything. Thanks. |
You are testing with an address which is defeats the issue. The problem happens when there's no address for the customer. Look at my screenshots. You are using Magento Luma default checkout, I am using a theme based onepage checkout, and whilst my checkout differs from core, the error itself is coming from core. The theme onepage checkout is relying on checkout-express.js from core. This is returning an object instead of a string with the error message. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Preconditions and environment
Steps to reproduce
The PayPal pop-up will be shown for a few seconds, then closed automatically, and the top of the checkout page will show "Object Object" instead of "The shipping address is missing. Set the address and try again."
Expected result
Display the proper error message:
Actual result
Error shown as "Object Object"
Additional information
I've come up with a patch which has fixed the error for me. Not sure if this is a theme related issue, or core Magento PayPal module issue.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: