Stripe: How to use the User Defined Amount and still add a 50% discount on the payment form?

  • qaissidiqi2
    Asked on October 3, 2022 at 3:10 PM

    As a brief recap, there is no field on checkout on where the customer can enter the coupon for their discount on their first order. To resolve this, kindly reach out to Jotform and update their integration because there is no option to have it enabled from the dashboard directly.


    On their back end, "allow_promotion_codes" is set to "null", they need to change it to "true" so there will be a field on checkout a place where they can enter your code. 


    Since this will also be for first time order only, they need to specify first_time_transactions parameter under restrictions attribute. They can learn more about this here:

    https://stripe.com/docs/payments/checkout/discounts#limit-by-first-time-order


    All of the instructions and guide are on this link if they need it:

    https://stripe.com/docs/payments/checkout/discounts

    That’s the notes from stripe on how to update that please update so that the stripe discounts can be added thank you. best,


  • Dragana JotForm Support
    Replied on October 3, 2022 at 4:50 PM

    Hi Qais,

    Thanks for reaching out to Jotform Support. I've reached out to our corresponding team for more information, and we'll get back to you as soon as possible.

    We appreciate your patience.


  • Dragana JotForm Support
    Replied on October 3, 2022 at 5:00 PM

    Hi Qais,

    Please note that the Jotform coupon feature allows you to select if the discount should be applied to all products or only specific ones. Check out this guide for more information. Also, the coupon limit is possible to be one-time use.

    Reach out again if there’s anything else we can help you with.


  • qaissidiqi2
    Replied on October 3, 2022 at 5:05 PM

    Hi thanks for getting back!

    so when I go to the magic wand of my payment (I use stripe) it does not have discount as an option where the tabs are. maybe it is because of what stripe mentioned in my email.

    best,


  • Joshua_T JotForm Support
    Replied on October 3, 2022 at 11:00 PM

    Hi Qais,

    Thank you for getting back to us. Please allow me time to check on this for you.

  • Joshua_T JotForm Support
    Replied on October 3, 2022 at 11:22 PM

    Hi Qais,

    Thank you for patiently waiting. We apologize for the confusion on this coupon issue. You are correct. It has something to do with the documents sent to your email. Please try to create the coupon code on your Stripe account Dashboard. You can refer to this Stripe Document for the steps to be taken.

    Give it a try and let us know if you have any other questions.

  • qaissidiqi2
    Replied on October 4, 2022 at 4:30 PM

    Hello, I have already tried that. That is why I reached out. Please read the question I initially posted. Jotform has to enable in the code for discounts and we even wrote how. Please let me know if you guys can fix that. (There is no magic wond for me in the payment widget that has a discount tab) thank you.

    best,

  • Joshua_T JotForm Support
    Replied on October 4, 2022 at 8:23 PM

    Hi Qais,

    Thank you for getting back to us. Please allow me time to look into this. I will circle back once I have an update.

  • Joshua_T JotForm Support
    Replied on October 5, 2022 at 8:21 AM

    Hi Qais,

    Thank you for patiently waiting. I cloned your form and I have identified that the reason why you are not able to use the coupon is that your payment setting is set to User Define Amount. Coupons only work if your Payment Setting is set to either Sell Products or Sell Subscription.

    1664972441 633d7699239bb  Screenshot 10Give it a try and let us know if you need any help.

  • qaissidiqi2
    Replied on October 5, 2022 at 8:56 AM

    got it. Ok thank you -- now since I created logic for the pricing because what I am selling is based on the order of the customer is there any way to connect the pricing from a "user defined amount" to a "product pricing" so that the pricing stays the same and I don't have to recreate every product. I have a lot of products and as you can see a lot of logic conditions are in play.

  • Dragana JotForm Support
    Replied on October 5, 2022 at 9:08 AM

    Hi Qais,

    I'm unsure if I understood your query, so please share more details so we can help you better. Please note that as our colleague, Joshua, mentioned before, you can use coupons only if you set the Payment Type as the Sell Products or Subscriptions, which means that you can't use the User Defined Amount in this case.

    As soon as we hear back from you, we can move forward with a solution.


  • qaissidiqi2
    Replied on October 5, 2022 at 9:12 AM

    I spent a lot of time building this form and the pricing is very variable based on the order. Now I was not aware that you can not do the discount with user defined amount. I have to use the user defined amount but I also have to give 50% off for first time users. So is there any way I can use the user defined amount but put it as a product pricing so that it still can give the discount?

  • Dragana JotForm Support
    Replied on October 5, 2022 at 9:23 AM

    Hi Qais,

    Thanks for the clarification. You can add a Short Text field where the user can enter the coupon. Then, using the Update / Calculate Field condition, you'll calculate the value of the Calculation field. See the screenshot below as a reference:

    Stripe: How to use the User Defined Amount and still add a 50% discount on the payment form? Image 10

    In the case above, if the Coupon field equals 1234, the calculation field will equal Products -50. You'll also need to add a condition for when the Coupon field is not equal to 1234, as shown in the screenshot below:

    Stripe: How to use the User Defined Amount and still add a 50% discount on the payment form? Image 21

    The final result will look as follows:

    1664976015 633d848f1739d  Screenshot 32

    You can check our demo form here. To clone it for testing, use this guide.

    Give it a try, and let us know how it goes.

  • qaissidiqi2
    Replied on October 5, 2022 at 9:31 AM

    got it thank you!

    one last question. is there anyway that jotform will track and only allow someone to use it for first time purchases. Since I can't use stripe and stripe does have full customization on how a customer used the discount. thanks you.
  • Carrissa JotForm Support
    Replied on October 5, 2022 at 9:40 AM

    Hello qaissidiqi2,

    Thanks for confirming that the solution worked for you. As for your other question, I've moved that to a new thread. You can check that out here.

    Reach out again if you have any other questions.


  • qaissidiqi2
    Replied on October 5, 2022 at 10:08 AM

    I am sorry but the solution has not worked yet. Because I am still trying to figure it out and we have to have a way to figure out first time users and only give code or apply discount to them. This is a basic discount feature that should exist.

  • Christopher JotForm Support
    Replied on October 5, 2022 at 10:14 AM

    Hi qaissidiqi2,

    The Coupon feature is available for payment type Sell Products. If you intend to use the payment type User Defined Amount then the guide provided by my colleague Dragana. If you are having a hard time understanding the guide, could you point out to us which part so that we can assist your further? It would help us to understand what’s happening if you could take a screenshot and send it to us. We have a guide here explaining how to do that.

    Once we hear back from you, we'll be able to help you with this.