jeffharrell / minicart

The minicart is a great way to improve your PayPal shopping cart integration.
MIT License
501 stars 211 forks source link

cart reset doesn't fire coming from PayPal #278

Open digitalmark66 opened 9 years ago

digitalmark66 commented 9 years ago

The following code works when typing in the URL manually to the page with the render/reset:

paypal.minicart.render(); paypal.minicart.reset();

BUT... this code doesn't work when on a cancellation (or successful transaction) page, that is landed upon from PayPal. The cart doesn't empty. Tried appending "?cancel" at the end of the "cancel_return" value, and "?success" at the end of the return URL value. Don't understand why it won't fire when coming from another domain, no matter where on the page, or how it is called (even tried Jquery getScript)...nothing else is appended to the URL either...