Lola Fee Calc icon

Lola Fee Calc

Lola Fee Calc Node

Lola Fee Calc

AI-generated

Overview

The Lola Fee Calc node calculates a fee based on a user's phone number and a specified amount. It is useful in scenarios where you need to determine transaction or service fees dynamically, such as payment processing, billing workflows, or financial automation tasks. For example, you might use this node to calculate the fee for a mobile money transfer before proceeding with the transaction.

Properties

Name Meaning
User Phone This is the phone number of the user. Used as an input to calculate the fee.
Amount Amount to calculate fee. The value for which the fee will be determined/calculated.

Output

  • The node adds a field called fees to the output item's json object.
  • The structure of fees depends on the result returned by the internal fee calculation function, but it will always be present in the output.

Example output:

{
  "fees": { /* calculated fee details */ }
}

Dependencies

  • May require a credential named lolaKeyApi, but it is not strictly required.
  • Relies on an internal helper function for fee calculation.

Troubleshooting

  • Missing Required Fields: If "User Phone" or "Amount" are not provided, the node may throw validation errors. Ensure both fields are filled.
  • Invalid Amount: Non-numeric or negative values for "Amount" could cause errors or unexpected results.
  • Fee Calculation Errors: If the underlying fee calculation fails (e.g., due to invalid phone format), the node may return an error message indicating the issue.

Links and References

Discussion