Closed yamenshahin closed 4 years ago
Hello
Without knowing much about how you're triggering the code above, i have to assume you have a form with a submit button, that when pressed reaches the code above that i assume that's inside a controller.
Do you block the form from being sent twice in a row? That's the only explanation for such "bug".
Without a consistent way for me to reproduce the problem i have to assume the problem to be within your application, like the user clicking the submit button twice, because you don't disable the submit button.
Your Environment
Expected behavior
Charge card one time only
Actual behavior
Sometimes it charge card more than one time.
Steps to reproduce