How can I add a coupon code to PayPal?

  • melissaatkinson14
    Asked on April 9, 2021 at 6:13 PM

    I don't see an option to add that.

  • Ariel JotForm Support
    Replied on April 10, 2021 at 3:18 AM

    Hi there,

    Are you referring to your https://www.jotform.com/210975336646160 form?

    If that's the case, the Coupon feature is not available on a "User Defined Amount" Payment Type.

    1618038325 60714e3588327  Screenshot 10

    But since the amount is user-defined, you can easily apply coupon discounts via Conditional Logic's Update/Calculate Field feature.

    You can try the following setup.

    Add two Short Text elements on your form, one for Coupon, and the other is for the discount computations.

    16062608132020 11 25 07 30 45 Screenshot 21

    I'm going to be using coupon codes "fixed" for a 10.00 fixed discount, and "percent" for a 10% discount, as examples.

    To get the fixed discount, use Conditional Logic's Update/Calculate Field to check if the Coupon (1)  is equal to (2)  "fixed" (3), and assign 10 (4)  to the discount (5)  field if it is.

    16062613902020 11 25 07 35 04 Screenshot 32

    For the percentage discount, use Conditional Logic's Update/Calculate Field to check if the Coupon (1)  is equal to (2)  "percent" (3), and assign the product of total and 0.10 (4)  to the discount (5)  field if the condition checks out.

    16062620702020 11 25 07 51 09 Screenshot 43

    That's about it for creating fixed and percentage coupon codes.

    You can then add the discount field to the computation, in this case subtract the field's value to the total.

    Hope that helps. Let us know if you have any questions or if you need further assistance.


  • melissaatkinson14
    Replied on April 20, 2021 at 5:31 PM

    Sorry, I forgot I asked this question, but it's actually for this form:

    https://form.jotform.com/210985817677169


    Would I still have to do it using conditional logic?

  • Lorenz JotForm Support
    Replied on April 20, 2021 at 9:05 PM

    Yes, since your form is using a "user-defined amount" Payment type, the condition my colleague provided is still applicable.

    Please give it a try and let us know how it goes.

    Thank you.

  • melissaatkinson14
    Replied on April 26, 2021 at 1:52 PM

    OK on my test booking form: https://form.jotform.com/211096797754166

    I tried this out, but for some reason, the calculation is not correct. If someone chooses a deep cleaning and house for a subtotal of $41 ( I disabled other selections for the purpose of just testing the code) and if the code springclean21 typed in a 15% discount should be applied, but instead of the right calculation $6.15 it gave me $5.35 off. What is something I did? 1619459509 6086fdb5380de Screenshot 2021 Screenshot 101619459509 6086fdb5162df Screenshot 2021 Screenshot 21

  • VincentJay
    Replied on April 26, 2021 at 8:41 PM

    Hi,

    Please check this cloned form: https://form.jotform.com/211157542076957

    I split the Subtotal and Total to avoid conflict on the Discount applied formula. You can clone the form to see the newly added field.

    1619484108 60875dcc509f7 vxcbr46 Screenshot 10

  • melissaatkinson14
    Replied on May 4, 2021 at 1:55 PM

    This worked for me thanks.