How to remove Pay later from Paypal Authorize page

Viewed 2326

We are trying to integrate paypal checkout into our web app. I can hide the pay later ( credit) and the card option from showing up easily using the query parameter disable-funding=credit,card as indicated here However I still see the options for Pay-later on my Paypal authorize page (https://www.sandbox.paypal.com/webapps/hermes...) (screenshot attached ). How can I disable them from showing up on the authorize page? Thanks in advance.

enter image description here

2 Answers

You can't. You only control the buttons displayed on your own site.

Once on a PayPal page, the buyer can always use any funding source they might be eligible for. It's between them and PayPal, and it's all kept private by design.

(The receiver of a PayPal payment won't ever know whether the payer used one of the above funding sources, or something else like a bank or card or PayPal balance. It's none of their business.)

You have to set the option disableFunding to 'credit'.

If you are using a script tag

<script src="https://www.paypal.com/sdk/js?client-id=YOUR_ID&disable-funding=credit"></script>

If a package set the prop named disableFunding of options in to credit .

eg. Using react

<PayPalButton
  amount="1.00"
  currency={currency}
  catchError={(err: Error) => console.log(err)}
  options={{ currency:"USD", clientId:"xxxxx", disableFunding: 'credit' }}        
  onError={(err: Error) => console.log(err)}
/>
Related