Stripe required and coupons

  • michaelcinter
    Asked on January 25, 2017 at 8:04 PM

    Hi!

    My form is being used as an event registration page with the stripe widget to pay by credit card, cash, or groupon. If the user wants to pay with cash, they are instruction to use the coupon code cash. The coupon takes 100% off the total price, and leaves a balance of zero at checkout. The payment field is required as i need this all guests to fill in this field for check-in purposes.

    Because the field is required, even though the balance is at zero its requring the user to fill out credit card information. I don't want it to do that. How can i fix this field?

    Thanks, 

    Mike

     

  • Ian
    Replied on January 25, 2017 at 10:11 PM

    It seems like you figured it out by yourself.

    I tested the form and it let me bypass the CC information once the cash coupon is applied

    Stripe required and coupons Image 1 Screenshot 20

    Let me know if yu still face any issue

  • michaelcinter
    Replied on January 26, 2017 at 7:45 AM
    I did. Thank you. However I still have a problem. If a user forgets to put
    a coupon code in, it highlights the credit card field as required. If I put
    in a coupon code afterwards, it forces the user to put in a credit card or
    I have to refresh the page. Do you have any idea how to fix it. Thanks
    ...
  • Chriistian Jotform Support
    Replied on January 26, 2017 at 8:13 AM

    Hi,

     

    I am currently checking your form. Please give me sometime to further investigate the issue. I will get back to you as soon as I get a workaround for the issue. 

     

    Regards.

  • Chriistian Jotform Support
    Replied on January 26, 2017 at 8:41 AM

    As a workaround to the issue, instead of using the coupon code "CASH" to payment field for cash payment option. Please try to add a Payment Option field instead on your form and create a new field for your product which will be shown/hidden depending on the Payment Option selected.

    Sample:

    When Payment Option > Cash is selected.

    Stripe required and coupons Image 1 Screenshot 80

    When Payment Option > Credit Card is selected.

    Stripe required and coupons Image 2 Screenshot 91

    You can check this sample form that I have created: https://www.jotform.com/form/70253850780961

     

    Here are the steps/guide to implement the workaround:

    1. Add Payment Option field (radio button).

    Stripe required and coupons Image 3 Screenshot 102

    2. Add the Product Fields (Tickets and Quantity)

    Stripe required and coupons Image 4 Screenshot 113

    3. Add a Form Calculation widget for the computation of the Total Amount set this to hidden so user will not be able to see the field.

    Stripe required and coupons Image 5 Screenshot 124

    4. Add a text field to display the total. You can add "Total: <field name>" (i.e Total: {totalcalc}).

    Stripe required and coupons Image 6 Screenshot 135

    5. Setup condition to show/hide fields.

    Stripe required and coupons Image 7 Screenshot 146

     

    You can also clone the sample form that I have provided to have a closer look on the setup. To clone a form, just follow the instructions provided in this article: How to Clone an Existing Form from a URL.


    Do let us know if you need further assistance.
    Regards.