Only allow a certain amount of credit card number attempts

Hello! I am trying to make my Pro Sites plugin as secure as possible and would like to know how I could limit the number of credit card attempts a user tries when signing up with the Stripe Gateway. As of right now, it allows them to attempt as many times as they want and I would like to restrict that to around 3 tries. If you have any articles or code on how this is done please let me know. Thank you :slight_smile: