Show a message while credit card is being processed


I am hoping someone can give me some inspiration in regards to once a user clicks the "Pay Now" button it will show a custom message until the credit card processing has completed. Then, once processing has completed; will make visible the confirmation message (like on the submit rules) and remove the custom message.

Thank you!!!

Hello Luke,

Thank you so much!!! There must be some special way knack handles this for credit card transactions due to nothing happens after I put this code in place. I will dive into the console later today to see if I can figure it out but, wanted to make sure I reply to your great work. For now I have inserted a title and message to warn users.