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?
Asked
Active
Viewed 862 times
1 Answers
1
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.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
-
-
Yes, I used GET instead of post - passing each of the button variables (the form fields from the button you copy from paypal) in the query string. – jax May 10 '10 at 17:26