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

Is it the right way to send orderID from the clien...

by aliyome Contributor in REST APIs
‎Aug-20-2020 04:34 AM
‎Aug-20-2020 04:34 AM
I have been working on a REST API v2 upgrade. Although I read the developer's docs, I could not understand how to migrate my v1 app.   I have previously implemented the following using the REST API v1   request a transaction to /v1/payments/payment on the client-side get the paymentID by the onAuthorize callback send the paymentID to my application server and request /v1/payments/payment/{paymentID}/execute on the server-side to finalize the payment Now, I'm trying to implement the same process in v2. I could do it in the following way, but is it the right way to send only the orderID to the server and capture it on the server-side?   use the smart button on the client-side to order to PayPal get the orderID by the onApprove callback send orderID to my application server and request /v2/checkout/orders/{orderID}/capture on the server-side to finalize the payment I'm worried because when I look up v2 implementations on the web, all I can find are ways to capture them on the client-side.   If anyone knows, please let me know. Thank you. ... 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