How do I make sure the Stripe paymnet is processed successfully before the user can move to the next page of the form?

  • Profile Image
    Asked on June 21, 2017 at 12:24 AM

    On my form, the user the ability to download a document (via webmerge) ONLY after they have successfully made a payment.

    I can't figure out how to prevent the user from visiting the next page where they can enter their email (which sends them the document) if the stripe payment has not gone through (ie: it has not been denied). When I indicated that the stripe payment field is required, if the user inputs anything into the Stripe fields they can proceed. I need it to be that only if they enter correct information (and their order is processed) can they continue. 

    My second question is, where can I write a response to users who have been denied. A simple "there's been an error with your card. please try again." is what I'm after.