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 ‎Oct-29-2020
Country: Hungary
Type: Personal
icguy
icguy Contributor
Contributor
1
Post
0
Kudos
0
Solutions
The Return
Active
View all
Latest Contributions by icguy
  • Topics icguy has Participated In
  • Latest Contributions by icguy

How to deal with aborted orders

by icguy Contributor in REST APIs
‎Oct-29-2020 10:49 AM
‎Oct-29-2020 10:49 AM
I have integrated Paypal into my website but I don't quite understand how to deal with some scenarios. The integration involves both client side and server side.   Ideally: 1. The user clicks the paypal button, my site calls my server. 2. My server calls the create order api, receives a) an order Id, which it saves into the database and b) a link to redirect the user to which it returns to my site. 3. My site redirects the user to the paypal interface. 4. The user approves the payment, gets redirected back to my site. 5. My site calls my server with the order id, the server calls the capture order api, funds transferred, everyone's happy.   My question is how to deal with two things: A) Suppose the user cancels the order after step 3. How do I cancel the order ("created" status)? B) Suppose that something goes wrong after step 4. The user approved the transaction but my server never gets notified about that. I'd like to cancel the order after 1 day or so, because I don't want pending orders in my database (I wasn't notified of the user approval). How do I cancel the order ("approved" status)? ... 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