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 ‎Mar-27-2019
Country: United States
Type: Personal
jisna
jisna Contributor
Contributor
1
Post
1
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Liked
Your PayPal Anniversary
Active
The Return
View all
Latest Contributions by jisna
  • Topics jisna has Participated In
  • Latest Contributions by jisna

Paypal checkout (smart button) handle error in cre...

by jisna Contributor in PayPal Payments Standard
‎Apr-03-2019 05:10 AM
1 Kudo
‎Apr-03-2019 05:10 AM
1 Kudo
Hi,   I am new to paypal. I have started to use paypal checkout for my application. From the paypal doc, below is the create order function to the server side. createOrder: function() { return fetch('/my-server/create-paypal-transaction', { method: 'post', headers: { 'content-type': 'application/json' } }).then(function(res) { return res.json(); }).then(function(data) { return data.orderID; }); }    How can I handle error if for any reason I couldn't get the order id? I have the code onError: function (err) { // Show an error page here, when an error occurs console.log(err); }   If there is any error and if I didn't get order id , now it just show in console that "Expected a promise for a string order id to be passed to createOrder".   How can I show the exact error message? ... 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