Orders and payment authorization

aleksandar43
Contributor
Contributor

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

Login to Me Too
2 REPLIES 2

JackieDaytona
Contributor
Contributor

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

 

Login to Me Too

JackieDaytona
Contributor
Contributor

I will put code and docs in zip file on that server

 

name is checkboxcart.zip

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.