Stripe required and coupons

  • Profile Image
    michaelcinter
    Asked on January 25, 2017 at 08: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

     

  • Profile Image
    Ian
    Answered 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

    Let me know if yu still face any issue

  • Profile Image
    michaelcinter
    Answered on January 26, 2017 at 07: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
    ...
  • Profile Image
    Chriistian
    Answered on January 26, 2017 at 08: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.

  • Profile Image
    Chriistian
    Answered on January 26, 2017 at 08: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.

    When Payment Option > Credit Card is selected.

    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).

    2. Add the Product Fields (Tickets and Quantity)

    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.

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

    5. Setup condition to show/hide fields.

     

    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.