How to create conditional logic based on the success/failure of payment from payment question | Community
Skip to main content
Answered

How to create conditional logic based on the success/failure of payment from payment question


Is there a way to prevent a user from going to the next step until the payment from the payment question is correct. I’m looking to charge for a consultation and then allow the customer to schedule the meeting in the following question.

I don’t want the user to be able to move on to the next question to schedule a meeting if the payment wasn’t successful.

Is this possible?

Best answer by john.desborough

@Rocknrolla - one way i have implemented this type of scenario for a client was to separate this into two forms and have the payment confirmation email include the link to the book the meeting typeform. 

the link in the payment confirmation would include ‘hidden field’ values for email address and a payment_confirmed = yes pair (at least the way i do it) that are passed into the scheduling form, you can add other fields as well but will need the appropriate hidden fields set up in the scheduling form to accept the imput … 

 

it’s a little bit of a pain to implement but it does work for my clients. 

 

des

View original

2 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5300 replies
  • Answer
  • August 24, 2023

@Rocknrolla - one way i have implemented this type of scenario for a client was to separate this into two forms and have the payment confirmation email include the link to the book the meeting typeform. 

the link in the payment confirmation would include ‘hidden field’ values for email address and a payment_confirmed = yes pair (at least the way i do it) that are passed into the scheduling form, you can add other fields as well but will need the appropriate hidden fields set up in the scheduling form to accept the imput … 

 

it’s a little bit of a pain to implement but it does work for my clients. 

 

des


  • Author
  • Explorer
  • 1 reply
  • August 29, 2023

Thanks John for taking the time to help!

I haven’t had the time to implement this but what I was thinking was to maybe use a combination of this and/or a webhook to try redirect them to a page once the payment goes through or something. 

You’ve pointed me in the right direction, thank you!


Reply