Calculations Tab
Pre-Step
Find the calculation that totals the fees prior to payment processing. Your form should already have this calculation.
Most communities, this calculation is called: {TotalFeesWithoutProcess}
Step 1
Confirm or create a calculation to determine the value of the processing fee.
- Result Name: {ProcessingFeeValue}
- Expression: The formula can be anything you wish. 4.9% + $1, 10%, 2.9% + $0.30, a flat fee of $5.00, or something complex. We recommend nesting the calculation into an if statement. If there are fees, there is a processing fees, if not, there is no processing fee. This will remove an unwanted processing fee if there are no fees.
- A flat fee of $5: if( {TotalFeesWithoutProcess}>0 , 5 , 0 )
- A straight 10% fee: if( {TotalFeesWithoutProcess}>0 , {TotalFeesWithoutProcess}*0.1 , 0 )
- A 2.9%+$0.30 fee: if({TotalFeesWithoutProcess}>0, ({TotalFeesWithoutProcess}*0.029)+1 ,0)
- A fee that matches AGS's processing fee: if({TotalFeesWithoutProcess}>0,(({TotalFeesWithoutProcess}+#COM_PAYPROC_FIX)/(#COM_PAYPROC_FIX-#COM_PAYPROC_MUL))-{TotalFeesWithoutProcess},0)
Step 2
Create or confirm a calculation to determine IF you should apply the processing fee.
- Result Name: {ProcessingFeeTotal}
- Expression: If the expression returns TRUE (1), the processing fee will be applied. If FALSE (0), there will be no processing fee.
- If you always charge a processing fee: if(1,{ProcessingFeeValue},0)
- To disable/remove the processing fee: if(0,{ProcessingFeeValue},0)
- If you only want a "Renter" pays a processing fee : if(type=="Renter", {ProcessingFeeValue} , 0 )
Step 3
Create or confirm the "Grand Total" calculation.
- Result Name: {GrandTotalFeesProcess}
- Expression: Add the Processing Fee to your original "Sub-Total" in the Pre-Step:
- Use this: {TotalFeesWithoutProcess}+{ProcessingFeeTotal}
Step 4
Confirm, create, or unhide a CALCRESULT field on your form to display the Processing Fee
- Field Name: DisplayProcessingFeeTotal
- Field Label: Processing Fee: $
- Initially Hide the field, then only display the field if there are fees. Use the logic: {TotalFeesWithoutProcess}>0
- The display result is the calculation used in step 2: {ProcessingFeeTotal}
- Decimal Places: 2