Hiding the Paypal button from Braintree dropin ui

Can I hide the paypal button from the user interface of Braintree folders? I think you have a custom PayPal button for PayPal (based on customer demand and design) and would like to use the interface provided by braintree dropin to process credit card payments. I am using PHP and javascript.

Thanks.

+8
braintree
source share
4 answers

I work at Braintree. If you have more detailed questions, please contact our support team .

In the current main version of the drop-down menu, the PayPal button is a custom option.

In previous versions of f, you use Braintree to integrate with PayPal, and you use the I / O interface, the PayPal button will appear. If you do not want the PayPal button to appear because you do not want to use PayPal through your integration with Braintree and you have not yet updated the current version, write support@braintreepayments.com and they will disable it for you.

+10
source share

Apparently, this is possible because in v2.15.0 they added the headless parameter.

Code example: https://gist.github.com/danielwu426/70eac6b34ab7491610f0

+4
source share

Whatever the clienttoken indicates in braintree, just provide it with an invalid or null value, it will show

0
source share

If you remove the Braintree Javascript from the code below (from the braintree.dropin.create function), it will remove the PayPal button from the Drop-in UI.

 paypal: { flow: 'vault' } 
0
source share

All Articles