1

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?

jax
  • 37,735
  • 57
  • 182
  • 278

1 Answers1

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
  • Actually it looks like they do support get...it didn't expect they would. – jax Jan 28 '10 at 17:08
  • Hello Jax, did you achieve to do it at the end ? – Hubert Mar 06 '10 at 04:58
  • 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