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 ‎May-16-2022
Country: Estonia
Type: Business
Neatlent
Neatlent
New Community Member
1
Post
0
Kudos
0
Solutions
Active
View all
Latest Contributions by Neatlent
  • Topics Neatlent has Participated In
  • Latest Contributions by Neatlent

Why isnt live working but sandbox is?

by Neatlent in Sandbox Environment
‎May-16-2022 09:29 AM
‎May-16-2022 09:29 AM
Im trying to add a smart button paypal thingy into my website but its not working at all. only sandbox works but when i try out live the paypal button closes and the debit card one just doesnt work.   CLIENT ID: AV7cr98Ra5RK32to64KTmF7VM6fo23xu2_eJvdaFbOusn_YxJEmu-WUU_AN1TDdjpUTOq-sNjAyKTWve   SOURCE CODE: <!DOCTYPE html> <html lang="en"> <head>     <!-- Add meta tags for mobile and IE -->     <meta name="viewport" content="width=device-width, initial-scale=1">     <meta http-equiv="X-UA-Compatible" content="IE=edge" />     <title> PayPal Checkout Integration | Client Demo </title> </head> <body>     <!-- Set up a container element for the button -->     <div id="paypal-button-container"></div>     <!-- Include the PayPal JavaScript SDK -->     <script src="https://www.paypal.com/sdk/js?client-id=AV7cr98Ra5RK32to64KTmF7VM6fo23xu2_eJvdaFbOusn_YxJEmu-WUU_AN1TDdjpUTOq-sNjAyKTWve&currency=USD"></script>     <script>         // Render the PayPal button into #paypal-button-container         paypal.Buttons({             // Set up the transaction             createOrder: function(data, actions) {                 return actions.order.create({                     purchase_units: [{                         amount: {                             value: '88.44'                         }                     }]                 });             },             // Finalize the transaction             onApprove: function(data, actions) {                 return actions.order.capture().then(function(orderData) {                     // Successful capture! For demo purposes:                     console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));                     var transaction = orderData.purchase_units[0].payments.captures[0];                     alert('Transaction '+ transaction.status + ': ' + transaction.id + '\n\nSee console for all available details');                     // Replace the above to show a success message within this page, e.g.                     // const element = document.getElementById('paypal-button-container');                     // element.innerHTML = '';                     // element.innerHTML = '<h3>Thank you for your payment!</h3>';                     // Or go to another URL:  actions.redirect('thank_you.html');                 });             }         }).render('#paypal-button-container');     </script> </body> </html>     ... View more
Labels:
  • Labels:
  • API
  • REST
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