OK. I have a real estate listing site where searches are for free, but we charge the customer to list their property. Here's how I'm setting up my site:
Add Listing p.1 - Customer enters listing type (to determine how much to charge customer). Form action sends control to Add Listing p.2.
Add Listing p.2 - Customer enters payment info on a form on our site. The action of the form sends the information to the merchant account payment gateway. The return value of this determines whether or not the payment went through.
If payment goes through, we send control to:
Add Listing p.3. - Customer enters in listing info. The action of the form sends control to Add Listing p.4, which basically is a confirmation that the info was added to the db and that the payment went through.
Basically, I want to know is how can I prevent anyone from accessing Add Listing p.3 without getting a 'yes' confirmation from the payment gateway? Like I don't want someone to try and access Add Listing p.3 by directly entering the URL, thus bypassing the payment part. Any thoughts?