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 ‎Jun-06-2020
Country: United Kingdom
Type: Business
MBC27
MBC27 Contributor
Contributor
2
Posts
0
Kudos
0
Solutions
The Return
Active
View all
Latest Contributions by MBC27
  • Topics MBC27 has Participated In
  • Latest Contributions by MBC27

Re: Pre built checkout solution error. - fails wit...

by MBC27 Contributor in REST APIs
‎Jun-06-2020 07:58 AM
‎Jun-06-2020 07:58 AM
As noone ever seems to post comments about fixed items, I will tell you what I did I was using <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> When I removed the line of code paypal code worked ok   ... View more

Pre built checkout solution error. - fails with Un...

by MBC27 Contributor in REST APIs
‎Jun-06-2020 07:36 AM
‎Jun-06-2020 07:36 AM
If this is the wrong board, sorry, please move it, I have searched and cannot find anyone else getting an answer to this problem   From here https://www.paypal.com/buttons/smart?flowloggingId=004609ba385e1   Just looking at setting up a quick payment method, using the pre built solution IDE is amazon Using ruby and Rails on a standard html page I added the code to the page and save it Started server When I initially visit the page using Chrome, I inspect the page and see in the Console VM2908:2 Uncaught ReferenceError: paypal is not defined   I pasted the exact code from the paypal link  (https://www.paypal.com/buttons/smart?flowloggingId=004609ba385e1)   <div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=sb&currency=GBP" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'pill', color: 'blue', layout: 'vertical', label: 'pay', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: '40' } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { alert('Transaction completed by ' + details.payer.name.given_name + '!'); }); } }).render('#paypal-button-container'); </script>   and I get the following error VM2908:2 Uncaught ReferenceError: paypal is not defined   How is this possible, I copied teh code, it says it should work   Thanks and for any help anyone can provide ... View more
Labels:
  • Labels:
  • Payments REST APIs
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