ok, iv got a site. you buy products, and it uses a well known credit checking agency to process the payment. works like thus :
- log in
- get credit card details
- check details and send order to credit card agency
4a. order successful
4b. order not succesful
the agency then forwards to either step 4a or 4b.
i got a problem
people are getting to 4a), and then hitting the back button, internet explorer jumps them to 3).
They are hitting 'retry' to re-post the values.
3) checks the basket to see what it needs to send, finds nothing.
3) is sent several variables, including 'amount' which it posts to the agency.
the user gets charged twice, an order is generated in 3), but when they reach 4a), and an email confirmation is sent, the order is empty, as it would be because 3) could find no items in the basket.
i need to stop the user, either hitting 'back'
or i need to stop 3) sending to secpay again (bear in mind that it is possible that in one session, a user may buy the same product again)