Three ways to confirm a payment
1. Check the dashboard
Open Transactions in the merchant portal and search for the reference. This is the easiest option for small shops that handle orders by hand.
2. Let Afara notify you (recommended)
Afara sends your server a message the moment a payment is completed. This is reliable even if the customer closes their browser before the page finishes loading.
3. Ask Afara from your server
Your server asks Afara for the status of a reference, using the steps below.
Ask Afara for the status of a payment
Call this from your server, never from the browser. Use the reference you received from the widget.This section is still being verified. The endpoint and fields above come from the Afara source code. We are confirming the exact request and response against the live system. See the API Reference for the full draft.