Wait for payment
This step pauses the automation run until the order has a final status. Place it after the message containing the payment link. To check immediately without waiting, use Check payment.
Add the waiting step
- Open the project → Automations → the intended For dialogs automation.
- Click Add step → GetCourse → Wait for payment. Open the step catalog.
- Connect the step after the message that sends the payment link.
- Select the step and set its parameters to
{{run.order_id}}from the create-link step. Check the value even if Senler filled it automatically. - Click Save.
Configure continuation
| Branch | When it runs |
|---|---|
| Paid | Full payment is confirmed. |
| Canceled | Cancellation is confirmed. |
| Refunded | A refund is confirmed. |
| Link failed | The payment link was not created successfully. |
Connect Paid to delivery of the purchased result or a customer message. Provide an appropriate message for the other branches and, if needed, a handoff to an operator.
Partial payment does not end the wait. Cancellations and refunds appear in Senler only when GetCourse sends those notifications. The process in Payment confirmation reports full payment.
If a final status is already known when the step starts, it selects the matching branch immediately. Otherwise the run waits within the platform’s allowed time. If confirmation does not arrive, check possible causes.
The result contains status, paid and, when available, the payment date paid_at. Bind the needed results to variables, then test and publish the workflow.