Hi I am a beginner in programming and this is a beginner’s theoretical question:
Say you create a charging form from scratch (charge.php). The customer pays for the products while in “charge_process.php” and then get a JS popup “You have been charged, don’t click “Back” or else you will get double rebilled”.
How can you avoid a case that it will get double rebilled when clicking back anyway? If I understand correct, the first step it is usually being done is redirecting the customer to a third page (thank_you.php or something of the sort) but I don’t know what else and can’t tell if it’s more of a JS solution in that stage:
- charge.php > process.php > thank_you.php