I have been scratching my head for days now and wonder if you can help.
I am busy developing a ticket booking system BUT don’t want to store data to the database UNTIL payment successful, or in other words the visitor is returned to my site after payment.
So what I have is a form that a post to a confirmation form. On the confirmation form I catch all the values via POST commands for visitor to review. I then POST this off to the payment provider and once the transaction is successful the visitor is routed back to my site with a confirmation page.
It’s THIS confirmation page that I want to use the store the values in the mysql database.
Now I can use sessions to keep the values in an array or I could write the values into a TEMP database table, but I don’t want to write to and back from the database to many times as I don’t have load balancing in place plus I want to it to be as lightweight as possible.
Any ideas?