Purpose
The EcoCash Payment node integrates directly with EcoCash to request payments from users within a WhatsApp conversation. The flow will automatically pause and wait for the payment outcome before proceeding.
Configuration
- Amount: The amount to be charged. You can use a static value (e.g.,
10.50) or a dynamic variable from your flow (e.g.,{{total_price}}). - Customer Phone: The phone number to send the payment request to. By default, it uses the contact's phone number (
{{contact_phone}}), but you can specify a different one. - Description: A brief description of the payment that will appear on the user's EcoCash prompt.
Branching
This node has two primary outputs:
- Success: This path is followed if the payment is successfully completed by the user.
- Failure: This path is followed if the payment fails, is rejected, or times out.
You must connect both handles to different nodes to manage each outcome, such as sending a "Thank You" message on success or a "Please try again" message on failure.