3

I have integrated Paypal mobile SDK in Android. As my account is not able to use direct credit card payment. Our customers failed to pay with credit card button. May I know how to disable/remove the credit card button in my App.

PS_SHA_Pub
  • 107
  • 1
  • 5

1 Answers1

5

Regarding how to remove credit card option, you may set acceptCreditCards as false in the PaypalConfiguration object:

For example:

private static PayPalConfiguration config = new PayPalConfiguration()
        …….
        .acceptCreditCards(false)
        .merchantName("Hipster Store")
        .merchantPrivacyPolicyUri(Uri.parse("https://www.example.com/privacy"))
        .merchantUserAgreementUri(Uri.parse("https://www.example.com/legal"));

Note: acceptCreditCards(boolean acceptCreditCards): Optional boolean to indicate support for credit cards.

Mobile SDK Java Doc

Above setting will help you to disable/remove credit card option in your App.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
PP_MTS_hzhu
  • 950
  • 6
  • 6