Question

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 .

Était-ce utile?

La solution

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

Autres conseils

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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top