Why did my balance owed change to a negative amount when I tested submitting payment?

  • Profile Image
    drjewell
    Asked on June 17, 2020 at 12:53 AM

    159238057820200617_034956.jpg

    All my calculations are exactly how I want but when I did the test payment with my stripe it changed my balance after payment to a negative number.  ex payment amount $400 balance after payment $-400.  Before the submit button is clicked everything is correct. 

    What is wrong and can you fix it?

  • Profile Image
    Patrick_R
    Answered on June 17, 2020 at 06:42 AM

    Hi! I've looked at the formula that you've implemented and after looking at the filled-in values (your attached screenshot); I can see that the calculation is working as expected. I believe you need to re-check your logic. Please have a look at the following explanation.

    Your implemented formula is: Balance after payment = Total Amount Owed - Pay this amount below
    Below, I have attached the screenshot for your reference as well of the responsible condition.

    1592390480chrome-capture (82).jpg

    As per the values provided in your screenshot, you are getting correct values:
    Total Amount Owed = 0
    Pay this amount below = 400
    Balance after payment = 0 - 400 = -400

    Let us know in detail what you're trying to implement here and we'll let you know how to fix this problem.

    I've found some other problems (specified below) in your form which are specified below.

    1. Your Stripe payment field isn't set to get value from any field (screenshot attached for your reference). Don't you want your calculated amount to autofill this field?

    1592390512chrome-capture (81).jpg

     Fix:  If you want your calculated value to be displayed here automatically, then you need to set it to the field name in which your calculated amount is being stored.

    2. You've implemented two different Single choice option controls for "Deposit ($200 x number of campers in tent)" and "Full Amount" (screenshot attached for your reference below).

    1592390534chrome-capture (80).jpg

    Basically, once these options are selected, users cannot unselect these as Single Choice options don't allow un-selection.

    I hope this helps. Feel free to write back to us for further assistance.