I'm using Paypal digit goods flow to get the integrated payment dialog into my site. When user open the dialog and they clicks cancel, it seems PayPal forces a refresh. Same thing happens when they complete the purchase.
Is there any way to prevent this? I'm also using Google Wallet which does not do this because it's terrible for user experience and I have to worry about preserving the state of the page now.