How to pass calculated value to payment field

  • Profile Image
    Asked on August 04, 2017 at 04:10 PM

    I just need to get the totals that have been calculated in the form into a total amount (I'll hide the fields later) into the stripe payment box.  Just hit a wall on this one.  Seems like it should be simple.  I really like the expansion approach putting in a number and the reg name boxes appear (adults and kids separate and different pricing)

    thanks in advance

    Pete Yeatrakas 



  • Profile Image
    Answered on August 04, 2017 at 05:57 PM

    Hey Pete, the guide I'm linking below will surely help. Basically, what you need is to set your total calculated result as the GET PRICE FROM option of your Stripe Payment Field.

    Just ensure you're using a Form Calculation Widget since GET PRICE FROM can only fetch values from the widget. If you're using a regular Textbox field for your total calculated result, just replace it with a Form Calculation Widget so you can pass it to your Stripe Payment Field.

    Complete guide: How-to-Pass-a-Calculation-to-a-Payment-Field