Hello, i have this form that i need to post to paypal, and when i do it posts in the same view. I can finish the process , but there’s no way i can get back to my app, say i came from /#/app/home and i end up here https://www.sandbox.paypal.com/cgi-bin/webscr#m-3
Also , paypal can return to an arbitrary url after completing the payment, but that’s useless since i can not return to the app from there, i tried a link with href like ‘file:///android_asset/www/index.html#/app/home’ but no go. It does work when i redirect from the server callback url to my local dev server localhost:8100/#/app/home but that is also useless on the phone since there’s no running server there only static files.
My only hope was to somehow submit the form in a new window which i could close when done, and this way i would never loose my app after submit, so i tried the inappbrowser plugin with target _blank but that only accepts an url , not arbitrary html like my form (well yea i did put my form in an external template and loaded that with window.open, and at the bottom of the file i had this javascript that would submit the form when loaded, but in that case i can’t modify my form before submitting, or maybe yes by injecting js into the inappbrowser ref but that would be crappy).
So, the question was… can i submit a form in a new window or something or maybe a way to get back to the app after i submitted the form.
Next thing is to try is to poll window.location.href after i submit the form, and when it matches my server callback url where paypal will redirect after success, maybe try to use state.go or something to get back “home”…
Any thoughts?