how to only disable paypal button but enable paylater button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to enable only paypal 'paylater' button and nothing else. I am using this code:
I also want to get (in case of payin3 option the breakdowns of total amount) amounts in an array so that I could perform some action on that.
<script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxx¤cy=GBP&components=buttons,messages&buyer-country=GB&enable-funding=paylater&disable-funding=card"></script> <div data-pp-message data-pp-style-layout="text" data-pp-style-logo-type="inline" data-pp-style-text-color="black" data-pp-amount="170"></div> <div id="paypal-button-container"></div>
paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: '170' } }] }); }, }).render('#paypal-button-container');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @Davidwesa,
Thank you for posting to the PayPal community.
Based on your specific configuration and a buyer's location and cookies, Checkout dynamically presents the appropriate funding sources to give your buyers more ways to pay.The buttons that display are decided automatically, based on a range of factors, including:
• Buyer country
• Device type
• Funding sources the buyer has opted to see.
As a result, each buyer might see a unique combination of buttons. To prevent certain buttons from displaying, see Disable Funding(https://developer.paypal.com/sdk/js/configuration/#disable-funding)
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs
- Playwright test failing in headless mode due to Paypal button in SDKs
- Nexus Mods donation button gives the message, "This organization can't accept donations right now" in PayPal Payments Standard
- How do I offer PayPal Pay Later button on my website? in PayPal Payments Standard
- Issue for SignUp on native apps - PayPal x 4 (paylater) in Sandbox Environment