I'm having a problem trying to stop the credit card transaction if some of the condition check I made become fail.
When customer checkout on my website, they click on the confirm button to process their credit card details, but before sending their credit card details to the Bank , I want to do some checking first.
If the checking fail, I want to stop the order from process further and also stop the credit card from sending to the Bank.
I hope my explanation above is clear enough.
Is there are elegant way to stop this process?