Stripe coupon with donation

  • melodicsounds
    Asked on April 18, 2016 at 12:49 PM

    Is it possible to add a  discount coupon to a custom price with stripe integration?

  • Ben
    Replied on April 18, 2016 at 2:56 PM

    I would just like to confirm that you wish to set up the price to be passed over to Stripe payment processing tool from the form fields and to add coupons to the same?

    If so that would be possible.

    This guide will show you how to set up the form fields and payment tools to work together: How to pass a calculation to a payment field

    Now in regards to the coupons, you should check out the following: How To Add Coupon Code in the Payment Form

    For general Stripe setup you should check this: How to Integrate Stripe with your Form

    Of course, if you have any issues, doubts or questions, just let us know about the same here.

  • melodicsounds
    Replied on April 18, 2016 at 4:23 PM

    I don't have the add a coupon option because stripes reads the total from a field.... a custom value in the donation/custome value option in stripe..

  • Kiran Support Team Lead
    Replied on April 18, 2016 at 6:00 PM

    Yes. You are right. Since you are using the Custom amount payments in the wizard, it reads the value from a form field to process the payment. In order to apply the coupon code on your JotForm, it is required to have a separate field for entering the coupon code and add some conditions to calculate the percentage of discount. 

    I've cloned your JotForm to my account and added two text fields for Coupon code, calculate the discount. Another field is added to calculate the final amount by adding a Form Calculation widget. 

    Stripe coupon with donation Image 1 Screenshot 40

    The discount value is shown based on the condition shown below:

    Stripe coupon with donation Image 2 Screenshot 51

    Now, the Form calculation widget is having the following calculation to subtract the discount percentage.

    Stripe coupon with donation Image 3 Screenshot 62

    Finally, the payment gateway will be reading the final calculation value to process the payment. 

    Please check the demo form below with the cloned version of your JotForm applying the above changes.

    https://jotform.com/61087201452952

    You may clone it to your account to see how it works.

     

     

    If you need any further assistance, please let us know. We will be happy to help.

  • Kiran Support Team Lead
    Replied on April 18, 2016 at 6:01 PM

    Here is the guide that helps you to clone the form to your account.

    http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Thank you!