Reputation: 941
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 .
Upvotes: 2
Views: 263
Reputation: 8118
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);
Upvotes: -1
Reputation: 3277
This extra has changed in 2.0+. Please look at the PayPalConfiguration javadocs. Sorry for any lags in doc updates!
Upvotes: 2