Webhooks
Last updated
Last updated
Paychant webhooks allow you to get automatic updates anytime the status on your widget instance changes.
The webhook will be called when the transaction reaches the processing status and also when it is complete. Once configured, your URL will receive notifications for the PROCESSING, COMPLETE, and FAILED statuses.
Once Webhook as been created, you can monitor all past and present event details in the logs.
To start receiving event, you need to create unauthenticated POST
route on your application.
For webhook notification event delivery to be satisfied, your endpoint must return a HTTP status code of 2xx
to Paychant. All response codes outside this range, including 3xx
codes, indicate to Paychant that you did not receive the event, and thus continue to send the notification event every 30 minutes for 24 hours. After 24 hours Paychant marks the event as failed and stops trying to send it to your endpoint.
Below is the list of the events when we send the webhook:
CREATED
When the transaction is created.
AWAITING_PAYMENT
When the transaction state is expecting the user to make a payment.
PAYMENT_CONFIRMED
When we have received the fiat payment from the user.
PAYMENT_COMPLETED
When we have received the fiat payment and the asset is successfully sent to the user.
PAYMENT_INSUFFICIENT
When we received the fiat payment but the amount of fiat sent by the user is not sufficient.
PAYMENT_TIMEOUT
When the user failed to make the fiat payment within the given timeframe.
PAYMENT_FAILED
There are a couple of things that can make a transaction fail, it can either be, a canceled transaction by the user, payment not made within the given timeframe, or a network connection problem.
CREATED
When the transaction is created.
AWAITING_PAYMENT
When a wallet address is generated for the user to send the asset payment.
PAYMENT_CONFIRMED
When the asset payment is received & the fiat transfer is initiated via our fiat vendor.
PAYMENT_COMPLETED
When the fiat transfer is successfully delivered to the user's bank account or mobile wallet by our fiat vendor.
PAYMENT_INSUFFICIENT
When we received the asset payment but the amount of asset sent by the user is not sufficient.
PAYMENT_TIMEOUT
When the user failed to make the asset payment within the given timeframe.
PAYMENT_FAILED
There are a couple of things that can make a transaction fail, it can either be, a canceled transaction by the user, payment not made within the given timeframe, or a network connection problem.