Overview
This node processes payments through the E-Mola payment system, a mobile money service. It validates phone numbers and payment amounts before sending a payment request to the E-Mola API. The node is useful for automating mobile money transactions in workflows, such as paying suppliers, transferring funds, or collecting payments from customers.
Typical use cases include:
- Sending payments to E-Mola users by specifying their phone number and amount.
- Automating transaction references or providing custom references.
- Integrating E-Mola payments into larger business automation pipelines.
Properties
| Name | Meaning |
|---|---|
| Phone Number | E-Mola phone number (9 digits, must start with 86 or 87). Example: "861234567" |
| Amount | Payment amount in Mozambican Metical (MZN), between 1 and 1,250,000 |
| Reference | Transaction reference string; if left empty, the node generates one automatically |
Output
The node outputs an array of JSON objects, each representing the result of a payment attempt. Each output item contains:
success: Boolean indicating if the payment was successful.provider: Always"emola"to identify the payment provider.reference: The transaction reference used.phone: The validated phone number used for payment.amount: The payment amount sent.timestamp: ISO string timestamp of when the payment was processed.response: The raw response object returned from the E-Mola API on success.error(only on failure): Error message describing what went wrong.
If the node is configured to continue on failure, failed attempts will still produce output items with success: false and an error message.
Dependencies
- Requires credentials containing:
- Base URL of the E-Mola API.
- Client ID and Client Secret for OAuth2 authentication.
- Wallet ID associated with the E-Mola account.
- The node performs two HTTP POST requests:
- To obtain an OAuth2 access token.
- To submit the payment request using the access token.
- Proper network connectivity to the E-Mola API endpoints is required.
Troubleshooting
- Invalid phone number errors: The phone number must be exactly 9 digits and start with 86 or 87. Remove any non-digit characters before input.
- Amount validation errors: Ensure the amount is a number between 1 and 1,250,000 MZN.
- Authentication failures: Check that the provided client ID, client secret, and base URL are correct and that the API credentials have proper permissions.
- API token errors: If the node cannot retrieve an access token, verify the OAuth credentials and network access.
- Unexpected API responses: Inspect the raw
responsefield in the output for details. Network issues or API changes may cause failures. - Enable "Continue On Fail" in the node settings to allow processing multiple items even if some fail.
Links and References
- E-Mola Official Website (for general info)
- OAuth 2.0 Authorization Framework
- Mozambican Metical currency info: https://en.wikipedia.org/wiki/Mozambican_metical