Good Morning,
Got a question regarding using CURL to automate the submission of a form.
What I'm trying to accomplish is to avoid someone submitting a paypal payment more than one time for a purchase through my shopping cart.
I can do it by submitting the form to paypal and have it open in the same window that it originates from, but I would also like to keep the dealer logged into their back office at the same time.
To keep them on their website, I send the form to paypal designating a new window, but that leaves the dealer on the page with the paypal button, so if they click on it again, there is the possibility of them making the payment a second time...
So, what I thought was I could use an interim page to sent them to when they click the pay now button, and that page could check the status of the shopping cart... If it shows as ordered (meaning payment was made), then it would just redirect them to their back office, but if it isn't ordered, I thought I could us CURL possibly to submit the form to Paypal automatically.
Does anybody know whether that would work, and take them to the paypal site to make the payment?
I know I can go through the process to figure it out, but figured someone in here may already have the answer and save me some time in coding a test script.
Thanks in advance for your feedback.
Douglas