Customizing PayPal buttons

Richard-R
Contributor
Contributor

I'm adding PayPal support to my website using the techniques described on the Smart Payment Buttons pages.  When I include this statement:

 

      paypal.Buttons().render("#paypal-button-container");

 

I'm getting all three buttons - the gold "PayPal" button, the blue "PayPal Credit" button, and the black "Debit or Credit Card" buttons.

 

Besides taking up a glob of screen space, it is frankly going to confuse my customers to no end, trying to figure out which one to click.  How can I just get the first button to display?

 

Login to Me Too
1 REPLY 1

Richard-R
Contributor
Contributor

I stumbled upon the solution that at least on the desktop, seems to work.  Haven't had a change to test on mobile yet.

 

I changed the layout to horizontal which reduced the number of buttons to two, "Paypal" and "Paypal Credit".  Then I  disabled funding for credit in the URL (i.e., &disable-funding=credit).

 

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.