Add an endpoint
Add your webhook endpoint in the InFlow dashboard of your Seller account, on the Webhooks page. The sandbox and production accounts are separate. Add an endpoint in each account.Events
InFlow records some payments only when they settle. For these payments, you get only
TRANSACTION_UPDATED.
Read the status
data.status gives the status of the transaction.
Check the signature
- Read the
x-signatureheader. It has the formt=<timestamp>,v1=<digest>. - Calculate the HMAC-SHA256 of
<timestamp>.<raw body>with your webhook secret. - Compare your result with
v1. Use a constant-time comparison. - Reject the request if the timestamp is more than 5 minutes from your server time.
Retries
If your endpoint does not return a2xx status, InFlow sends the event again. InFlow also sends it again after a network failure. InFlow sends up to 11 retries. The first retry is after 1 minute. Each delay is two times the delay before it.
InFlow does not follow redirects. Each retry has a new signature timestamp.
Duplicates and order
Each retry has the sameeventId. Process each eventId only one time. Events can arrive in a different order from the order of the changes.
Next step
Fees and payouts
Read what InFlow charges, and how you get your funds.