Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Aug-21-2021
Country: United States
Type: Personal
Tom_Carlisle
Tom_Carlisle Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
Your PayPal Anniversary
Ice Breaker
Active
The Return
View all
Latest Contributions by Tom_Carlisle
  • Topics Tom_Carlisle has Participated In
  • Latest Contributions by Tom_Carlisle

Re: Paypal

by Tom_Carlisle Contributor in PayPal Payments Standard
‎Sep-05-2021 09:26 AM
‎Sep-05-2021 09:26 AM
Hello,  Would you consider to provide more details of what you are using? This is a community support forum, meaning others here will try to provide help. This isn't where you raise a PayPal ticket expecting PayPal to help.  From your post, we can gather you are using paypal, and when checking out (I presume) it is not working.  It would be best to provide some details, like which wordpress plugin you might be using or if it is your own code. If you are not the developer of the code and are using a plugin someone produced, then you should reach out to whomever produced it and tap their support.   ... View more

Re: Clients are having trouble using the Paypal bu...

by Tom_Carlisle Contributor in PayPal Payments Standard
‎Sep-01-2021 08:32 AM
‎Sep-01-2021 08:32 AM
There are a few problems with the sample code posted, but I think the main issue was that it was loading the PayPal JS code in a way that the library is not initialized before the rest of the code on the page tries to use the 'paypal' variable.  There were some other errors, as it seems the "description" input box had been cut from the code, and hence that was undefined.  Thus, that was solved by adding these few lines.  Of course, another way to solve would have been to not refer to the description in the function(s) passed to PayPal in the call backs: To get the script to fully load before the "paypal" variable is used, you can solve that a few ways. One way is to force the page to wait for the library to load, as is described in the marked answer on this stack overflow question:  https://stackoverflow.com/questions/66307168/paypal-not-defined-when-customizing-own-src-for-script-tag  Another way would be to load it on a page that comes before checkout.  Aside from those things, and some re-formatting, that really is all that was needed.  But I also want to explain how these problems can be troubleshot. In my experience, when a page doesn't load everything you expect, it is almost always because of a problem, such as an undefined object referenced. You can open your browser's developer tools to view the console, which will give you some clues. In this case, amongst the stack dump that is logged, I saw mentions of "Paypal is undefined".  Once that was fixed, the page still didn't load, but now it was mentioning "description is undefined".  Once that was fixed, the sample page worked. Without the dev tools, I'd just be guessing -- and probably blaming PayPal's side. LOL.  Note, I was trying to post updated code, using the code tags, but apparently these forums do not allow HTML code. If that is the case, it makes this forum virtually useless.  I get that it is because people post and try to embed malicious links, but that isn't what I was doing. The board software should know to escape the embedded HTML so it doesn't actually run in the viewers browser.  ... View more

PSA: PayPal JavaScript Buttons + VSCode + Chrome D...

by Tom_Carlisle Contributor in PayPal Payments Standard
‎Aug-25-2021 05:42 AM
‎Aug-25-2021 05:42 AM
Hello, I am posting to raise awareness of an issue that has cost me some time. Using the PayPal JavaScript "smart buttons", if one is using VSCode with chrome debug tools and the browser is launched as a debugging session, the PayPal smart buttons do not work. OK, sometimes they work, but most of the times they do not.  After spending hours presume there is an error in my code on the page that the buttons are placed, it turns out that the code is not the issue. I can confirm that by making a new HTML page, and follow the documentation to put those smart buttons on the page, and it doesn't work.  By "doesn't work", here is what I mean. The expected behavior is that when the user clicks one of the PayPal buttons, the page should go slightly dark and have the PayPal message in the center regarding the popup window, then (or almost immediately) the paypal popup should come up and allow the user to login to their PayPal.   But what happens instead, is the page does not go dark at all, and the PayPal popup opens but never finishes its initialization. A spinner will appear for about 10 seconds, and then the popup closes. In the console log in the browser, one will see a number of ERROR events indicating that "no response was found for" etc.  After many hours trying to get this to work, in the end the way I "fixed" this is to either use Chrome but not in debug mode and connected to VSCode as a debugger, or to use Firefox.  Firefox works fine even in debug mode etc.  It is worth mentioning that the integration I am working on is dealing with subscriptions, not product checkout. So it is possible the issue I have hit is only hit when working with subscriptions. Though I doubt that is the case.  It would have saved me some time and headache if I had known this, and hence why I am posting it here.  ... View more
Labels:
  • Labels:
  • PayPal HTML Buttons
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros