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-08-2019
Country: Brazil
Type: Personal
reisnobre
reisnobre Contributor
Contributor
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
The Return
Active
View all
Latest Contributions by reisnobre
  • Topics reisnobre has Participated In
  • Latest Contributions by reisnobre

Paypal basic integration fails to call the onAppro...

by reisnobre Contributor in REST APIs
‎May-08-2019 06:31 AM
‎May-08-2019 06:31 AM
I'm learning to use this api and discovering really fast that most of tutorials on the google and youtube are out of date... That's ok, just need to shove my face on the docs and push trough, that's normal, but when even the basic integration on the docs fails without any erros that's kind bad. Here is the code that I'm using: https://developer.paypal.com/docs/checkout/integrate/# paypal.Buttons({ createOrder: function (data, actions) { console.log('creating order') // Set up the transaction return actions.order.create({ purchase_units: [{ amount: { value: '0.01' } }] }) }, onApprove: function (data, actions) { console.log('order aproved') // Capture the funds from the transaction return actions.order.capture().then(function (details) { // Show a success message to your buyer alert('Transaction completed by ' + details.payer.name.given_name) }) } }).render('#paypal-button-container') Nothing weird, the login goes trough but the purchase fails and I'm presented with the information that I should another payment method. When I click on credit card, the order and values appears, but, even when I'm logged in, I'm forced to create another account?  Could I have some help here to understand what is happening? ... View more
Labels:
  • Labels:
  • Payouts 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