Android – Opening the browser through an Intent and Posting data for PayPal


I want to press an Android button and automatically direct the user to the PayPal site with all the relevant data POSTED along also. Is this possible?

Best Solution

If PayPal offers a URL where you can supply the data you want via a GET request (i.e., encoded form variables as part of the URL itself), then yes -- just convert the URL into a Uri via Uri.parse(), then call startActivity() on an ACTION_VIEW Intent on that Uri.

If PayPal does not offer a URL with GET parameters to accomplish what you want, then no, it is not possible.