cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

Accept Hosted Form - how to handle invalid user input

I'm using the accept.js hosted payment form (https://developer.authorize.net/api/reference/features/acceptjs.html) and it works great. However, if the user enters incorrect information such as an invalid CVV or zip code (AVS mismatch) the form seems to automatically dismiss itself so once I get the decline result back from my server and display a message to the user that the transaction has been declined, they have to trigger the payment form to show again by re-clicking on whatever they originally clicked on to bring it up in the first place. I realize I can bring it up automatically, but even if I do that then the form will be cleared of their previous input meaning they would have to re-type in everything rather than just the field that was incorrect. Is there any way to handle this using the hosted payment form or do I need to use my own form to gain this level of control? If I have to use my own form, is there any way to easily incorporate the immediate CC number validation as they leave the CC number field? I really like that feature of the hosted payment form. Thanks in advance.

blackwood821
Contributor
Who Me Too'd this topic