How to add subtotal and tax to stripe?

  • StreetLink
    Asked on September 25, 2018 at 3:23 AM

    I am trying to integrate stripe into my jotform, however, I do not sell products but offer a delivery/messenger service.

    The final price is based on vehicle, mileage and the conditions work.

    How can I have the amount, tax and total seperated (see screenshot).

    Using the "user defined" option only shows the field below!

    1537859921STRIPE PAYMENT WIDGET NO VAT Screenshot 10

    However, formy customers I need to be able to have "subtotal", "tax" and "total" seperated and each value listed as in the screenshot below. It only seems possible with the "product" option?

    1537859968STRIPE PAYMENT WIDGET WITH SUB Screenshot 21

    Thanks for your help in advance.

  • Adrian
    Replied on September 25, 2018 at 6:53 AM

    You can calculate the "subtotal" and the "tax" and show them to the users using the Form Calculation Widget.

    Demo: https://form.jotform.com/82673056232960

    You can then pass the Total field to Stripe.

    How-to-Pass-a-Calculation-to-a-Payment-Field


    Related Guides:

    How-to-Assign-Calculation-Value

    How-to-Perform-Form-Calculation-Using-a-Widget


    The Form Calculation Widgets can be hidden and you can only show their value in a text element as I did on my example.

    1537872801ff Screenshot 10

  • StreetLink
    Replied on September 25, 2018 at 7:52 AM

    Thanks for your help Adrian, but unfortunately this does not help.

    The distance widget process is as follows:

          1. Choose Vehicle

          2. Collect from, Deliver to

          3. Vehicle charge/mile multiplied by distance gives the value (subtotal)

    All the calculations are done in the "Update/Calculated Field" I did this by following another one of your tutorials.

    The value/pricing works perfectly.

    How do I capture that subtotal and where do I insert it for the full calculation (subtotal, tax and total)?

    Thanks

  • Adrian
    Replied on September 25, 2018 at 9:14 AM

    My example is for demonstration purposes only.

    The value/pricing works perfectly.

    I believe you have managed to calculate the subtotal using the calculation conditions.

    To calculate the Tax, add a Form Calculation widget and add the expression.

    1537880942tax Screenshot 20

    In my case, the tax is 20%, so the calculation expression is Subtotal * 0.2.

    Similarly, to calculate the total, you add another Form Calculation Widget and add the Subtotal + Tax.

    1537881217st Screenshot 31

    Then, you only pass the total in Stripe.

    1537881240str Screenshot 42

    But you can still show the Subtotal and Tax to the users.

    How to add subtotal and tax to stripe? Image 1 Screenshot 53


    Let us know if you need further assistance.