PaymentActivity.EXTRA_SKIP_CREDIT_CARD can not be resolved

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 .

Answers


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);

Need Your Help

PHP session variable won't save

php variables session save

I've been having an issue with saving a PHP session variable. It's a registration form, when the user presses submit the user gets sent to registrationprocess.php. The registrationprocess.php site ...

Magento - AWS load balancing

magento amazon-web-services amazon-ec2

I am planning to host my magento store in the aws, through reading documentation and doing research i am like almost done with the architecture :