PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, November 22, 2022

[FIXED] How to disable the "paylater" funding on the PayPal JavaScript SDK Button

 November 22, 2022     paypal     No comments   

Issue

I'm using the latest PayPal JavaScript SDK and I'm trying to disable the "pay later" funding. The documentation is simple and clear: https://developer.paypal.com/sdk/js/configuration/#link-disablefunding

Steps to reproduce:

  1. Visit https://www.paypal.com/buttons/smart and click "Copy Code" without modifying any setting
  2. Replace both USD with EUR
  3. Add &disable-funding=paylater to the list of query parameters
  4. Click the button and log in with your sandbox account

The "pay later" option is still there.

enter image description here

What am I missing here?


Solution

  • To disable the Pay Later button from being rendered as one of the PayPal buttons on your site (next the yellow PayPal one or black Debit or Credit Card one, generally), use &disable-funding=paylater. You only control what happens on your own page.

  • Once a payer clicks to go over to the PayPal page, and especially once they sign in, which funding sources will be available are between that payer and PayPal. You do not control this, and indeed you will not be informed which funding source is selected. Billing and funding source information in their account is kept private by design; all you know and really need to be concerned about is receiving a successful PayPal payment.



Answered By - Preston PHX
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing