0

Some of the users are refreshing the page while they have been credited with the amount.. Askdetails.php In this page we are requesting the customers to provide bank details/upi id details , once they enter and press on submit , the submit button gets disabled and transfers to payment gateway page..... Meanwhile from askdetails to cashgram the users may refresh the page and now the cashgram dashboard is getting requests multiple times from the same customer. How to avoid this...

One solution i found is to display message "don't refresh the page" Another to avoid multiple submissions..

What ever i am trying my application stops working with the change in these 2 pages

Any help.. Its very important to me

lalitha N
  • 1
  • 1
  • Does this answer your question? [How to call a function before leaving page with Javascript](https://stackoverflow.com/questions/28627111/how-to-call-a-function-before-leaving-page-with-javascript) – Justinas Aug 24 '20 at 08:24
  • Disabled the button after someone click submit – TZiebura Aug 24 '20 at 08:28
  • single-use hidden token in your form would help, if the server checks this before accepting the (re)submission – ADyson Aug 24 '20 at 09:46

0 Answers0