Submitting form only if payment is completed

Final code:

By the way, if anyone more experienced than me wants to audit this and let me know if I did anything wrong that would be awesome :slight_smile:

[edit] Just kidding. This doesn’t appear to work with new contacts/emails and I have no idea why. I also tested it in private mode and it appears that the createContact function was triggering off of my member account instead of off of the email.

Thoughts on a work around?