I am integrating Paypal SDk first time in my app and I want to hide buy with credit card option from my application .I found that I can set intent.putExtra(PaymentActivity.EXTRA_SKIP_CREDIT_CARD, true);

But when I am doing so it says PaymentActivity.EXTRA_SKIP_CREDIT_CARD can not be resolved .I have used demo app from github for integrating paypal into android .

Here is the link .Please tell me how to resolve this .

有帮助吗?

解决方案

This extra has changed in 2.0+. Please look at the PayPalConfiguration javadocs. Sorry for any lags in doc updates!

其他提示

For example like this:

PayPalConfiguration() object = new PayPalConfiguration();
object = object.acceptCreditCards(false);

and then give object on the intent like this:

intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, object);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top