html5 - Paypal hybrid app -



html5 - Paypal hybrid app -

i have managed integrate donate paypal button in cordova app:

<form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'> ... </form>

all works fine except when button pressed, new window appears , completly covers app webview making impossible user go app (the way killing app process), think bad user experience.

things i've tried:

target='_blank': same result target='myiframename': cross-domain problem post form via ajax , set result in div: form must calculated on fly error (with $http.put in ionic, haven't tried jquery)

please, solution?

the best 1 have paypal window within current webview not covering header, place back button there (something iframe solution work cross domain) placing link go in paypal donate page. haven't investigated deeper enought paypal plugin @ location: https://github.com/paypal/paypal-cordova-plugin. knows if work? (i've opened issue there asking feature)

why not utilize inapp browser ? cordova inappbrowser

and phone call cordova.inappbrowser.open( url, '_blank', 'location=yes'); on button click function, or whatever suits you.

_blank = within app _system = system's browser( redirect app )

html5 cordova paypal hybrid-mobile-app donations

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -