开发者

Paypal using Webview

I want to know if i can integrate the paypal without using paypal library for android. (Ma开发者_开发知识库y be using webview)?

If yes, is there any tutorial to know the process?

Thanks in advance.


Yes; PayPal Mobile Express Checkout. It's basically a mobile view for PayPal Express Checkout. It's dead-easy to implement. Just call SetExpressCheckout, retrieve the token, redirect to https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=TOKEN and call DoExpressCheckoutPayment when the user is back on your page.

https://developer.paypal.com/webapps/developer/docs/classic/products/mobile-express-checkout/
https://developer.paypal.com/webapps/developer/docs/classic/mobile/gs_MEC/


if you are going to do this i would suggest note putting it on the android market since they do not like that i would suggest using amazon or any other third party market

What I use this for my donation buttons and have it set as a picture button: note switch the donate to the buy code

Donate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.com/your_paypal")); startActivity(browserIntent); } });

to get the link version click the email version when setting up the button.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜