PayPal API Card options shown

niksimms
Contributor
Contributor

loading https://www.paypalobjects.com/api/checkout.js via the checkout,
Sample of code used

paypal.Button.render({
     env: 'sandbox'// Or sandbox 'production'
     style: {
         label: 'pay',
         size: 'responsive',    // small | medium | large | responsive            shape: 'rect',     // pill | rect            color: 'blue',     // gold | blue | silver | black            fundingicons: true// optional            tagline: false,
         height: 40
     },
     funding: {
         allowed: [paypal.FUNDING.CARD],
         disallowed: [paypal.FUNDING.CREDIT]
     },

Blue Button 'Pay with Paypal' Card below and Cards show (Card Type) Show American Express and Discovery. Can we prevent these from showing?
Via admin of the account or via script 
selector.JPGPBC_Cards.JPG 
Any advice welcome.

Login to Me Too
2 REPLIES 2

niksimms
Contributor
Contributor

Please note that this is for Guest Payments. I've found out that you can disable the cards (logos) that are being displayed via funding funding: { allowed: [paypal.FUNDING.CARD], disallowed: [paypal.FUNDING.CREDIT, paypal.CARD.AMEX, paypal.CARD.DISCOVER] }, but the user can still select from the card options when they go to payment.

Login to Me Too

niksimms
Contributor
Contributor

I've also noticed that:
https://www.paypal.com/sdk/js?client-id=sb&currency=USD&disable-card=amex,jcb&locale=fr_FR&vault=tru...
Although the cards shown do not include amex and jcb the payment still have the cards in the dropdown

Tested on https://developer.paypal.com/demo/checkout/#/pattern/client

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.