REST API PayPal window closes immediately
pergsha
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-21-2018
06:48 PM
When clicking the buy now button, the PayPal window opens then closes before anything loads. It worked perfectly a few days ago and I have not modified my code. After clicking the buy now button, the console log gives the following errors. Has something with checkout.js changed in the last few days? ppxo_unhandled_error {…} country: "US" env: "sandbox" errtype: "[object Error]" host: "www.sandbox.paypal.com" lang: "en" pageID: "03cff0e2f5" path: "/webapps/hermes/button" prev_corr_ids: "3f88c1984fe7c, 3f88c1984fe7c,bac8bd8596e3a, bac8bd8596e3a" referer: "http://mydomain.com" stack: "An error was encountered while handling error:\n\n ./node_modules/post-robot/src/index.js/_RECEIVE_MESSAGE_TYPE[conf.b.POST_MESSAGE_TYPE.RESPONSE]@https://www.paypalobjects.com/api/checkout.js:2574:31\nreceiveMessage@https://www.paypalobjects.com/...: {…} __defineGetter__: function __defineGetter__() __defineSetter__: function __defineSetter__() __lookupGetter__: function __lookupGetter__() __lookupSetter__: function __lookupSetter__() __proto__: Getter & Setter constructor: function Object() hasOwnProperty: function hasOwnProperty() isPrototypeOf: function isPrototypeOf() propertyIsEnumerable: function propertyIsEnumerable() toLocaleString: function toLocaleString() toSource: function toSource() toString: function toString() valueOf: function valueOf() logger.js:91:13 [Show/hide message details.] Error: An error was encountered while handling error: ./node_modules/post-robot/src/index.js/_RECEIVE_MESSAGE_TYPE[conf.b.POST_MESSAGE_TYPE.RESPONSE]@https://www.paypalobjects.com/api/checkout.js:2574:31 receiveMessage@https://www.paypalobjects.com/api/checkout.js:2619:25 messageListener@https://www.paypalobjects.com/api/checkout.js:2640:13 ./node_modules/post-robot/src/index.js/_RECEIVE_MESSAGE_TYPE[conf.b.POST_MESSAGE_TYPE.RESPONSE]@https://www.paypalobjects.com/api/checkout.js:2574:31 receiveMessage@https://www.paypalobjects.com/api/checkout.js:2619:25 messageListener@https://www.paypalobjects.com/api/checkout.js:2640:13 index.js:61 ./node_modules/xcomponent/src/component/parent/index.js/_class
1 REPLY 1
pergsha
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-21-2018
07:10 PM
OP would have been easier to read if my formatting stayed, but oh well. UPDATE: It seems to work after removing my cancel and error redirects.. so what is the correct way to add those redirects? I cant seem to find any examples of it.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment
- PayPal debug id: f95202622d65cI in Sandbox Environment
- WordPress plugin GiveWP connected with PayPal but doesn't work in PayPal Payments Standard
- Checkout buttons appear twice and popups close as soon as they appear (ReactJS) in PayPal Payments Standard
- Paypal subscription button - Popup not closing and onApprove not triggered in SDKs