- melodicsoundsAsked on April 18, 2016 at 12:49 PM
Is it possible to add a discount coupon to a custom price with stripe integration?
- BenAnswered on April 18, 2016 at 02: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.
- melodicsoundsAnswered on April 18, 2016 at 04: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..
- JotForm SupportKiranAnswered on April 18, 2016 at 06: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.
The discount value is shown based on the condition shown below:
Now, the Form calculation widget is having the following calculation to subtract the discount percentage.
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.
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.
- JotForm SupportKiranAnswered on April 18, 2016 at 06:01 PM
Here is the guide that helps you to clone the form to your account.