How do I require that the Stripe payment is approved (validated) before user view the next screen of a form?

  • appealmed
    Asked on June 21, 2017 at 12:20 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.

    Thanks

  • Rose
    Replied on June 21, 2017 at 4:15 AM

    If I understood your question correctly, you would like to be able to be sure the payment will be processes or not before the form is submitted and prevent user to go next page if the payment will fail. For this case it is unfortunately not possible to achieve through JotForm. 

    Our payment integration checks credit card details and gives a warning if the entered credit card number is not valid. When a payment form is submitted, the charge processes is handled via 3rd party services such as stripe. If the payment is received by you, the submission will appear on your submission page and if not, the submission waits under pending payment section on your submission page. Currently, it is not possible to check the thing you are looking for on our side. 

    On the other hand, If I understood your workaround correctly, you would like to send the document only if you receive payment. So, I can suggest you the following workaround.

    1. Add and edit link to your notification e-mail.

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 1 Screenshot 80

    2. Add a single choice field with "Yes" and "No" option for an admin operation part and hide this field.

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 2 Screenshot 91

    3. Add additional two autoresponder e-mails.

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 3 Screenshot 102

    4. Enable "Send on Edit" option on both of them. 

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 4 Screenshot 113

    5. Now set following condition. 

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 5 Screenshot 124

    The idea here is so simple. When you hide single choice field, your customer does not see this field. It is added for admin operation. 

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 6 Screenshot 135

    Once your customer fill the form and submit it, you will receive notification and your customer will receive the default autoresponder. You can customise e-mail bodies of each autoresponder and notification. 

    How do I require that the Stripe payment is approved (validated) before user view the next screen of a form? Image 7 Screenshot 146

    Once you receive notification, you can check user payment is processed or not. Then, you need to click edit submission link on the notification to send conditional autoresponder. Once you click edit submission link, you will be able to see single choice field. If the customer make a real payment, you need click yes to trigger condition to send autoresponder for successful payment and click no to trigger condition for unsuccessful payment. The conditional autoresponder won't be sent together. 

    You can clone this form to check my modification on the form. 

    https://form.jotformpro.com/71711895923969

    If you need any further assistance by our side, please feel free to contact us.