Orders and payment authorization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Here is an explanation of what I'm trying to achieve:
I have application where users can order food/drink from a restaurant and I want to achieve the following:
User can select multiple items and proceed to the payment then when he approve the payment I want to authorize the order, but then he might go back and add more items then proceed with the payment again (I would also like to authorize that), in the end I want to have only one transaction for all items.
Here is what I've been trying to implement:
I was creating an order and when the user is making the payment I was only authorizing the order, then when the user is ordering again I was using the void request (to cancel the previous authorization) and creating a new order with all the items and authorizing it, but my concern here is that the user may/will see all that (authorizing then cancelling then authorizing again) in their bank history and that is a bad user experience.
I was trying to patch/update the order, but once I authorize it (hold the users money) I cannot edit the order.
Please advise which approach should I use?
Thank you for your consideration
Kind regards,
Aleksandar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Take a look at farmhousemarket-lakeburton.com/gngorder.html
This is a menu/checkbox cart system, Written entirely in JQuery. Form HAS to be validated BEFORE PayPal Button will Activate for checkout. Once user checks out, transaction info gets returned to the app and then the email gets submitted to the seller and buyer, complete with messaging, validation and PHP AJAX email submission using PHP mailer with RD-Mailform.
This does ALMOST exactly what you want. You should be able to work out the rest based on this code
Use Dev Tools to steal code or if you need standalone or PHP code HMU
Thank you
D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- v2/payments/authorizations/{authorization_id} Request failed with status code 404 in REST APIs
- How to validate data existence on PayPal side in REST APIs
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)