Novalnet uses notification webhooks to notify your server about the change in the status of a transaction asynchronously. The notification webhooks are endpoints that are essential to carry out the successful integration with Novalnet.
The common practices include events like when a customer pays the money to Novalnet account for Invoice payment type; a customer disputes a transaction (chargeback), or when a subscription renewal happens.
The notifications from the Novalnet server are posted for all transactions, including success, failures and follow-up transactions (return debit, chargeback, incoming credit, refund, subscription extension, etc.).
The following steps should be carried out for processing notification from Novalnet:
Notifications are sent as HTTP callbacks (webhooks) to an endpoint on your server. To receive the notifications, you need a server that has the following:
Refer to this>>link<< for the domain whitelisting as per your network or security requirements.
a) Setting up the webhook through API:
Novalnet offers the possibility to configure the webhook URL via the API in transaction level or at the project level. You can set up the webhook URL via the API in one of the following ways, and the one which has been configured at the transaction level will be given the preference.
To configure the webhook URL at the project level, refer to this >>link<< for the parameter details.
In the initial payment request, the parameter transaction.hook_url value had to be passed (based on your integration type) with an appropriate URL to use this option. As per your integration type, refer to the steps below,
b) Configuring the webhook URL in the Novalnet Admin Portal:
To configure the webhook in your portal, follow the below steps,
When the webhook endpoint URL is set through the payment request (as mentioned above), the notification will only be sent to that URL. Therefore, if you want the endpoint URL configured in the portal to be in effect, make sure you have discarded the dynamic transmission of the webhook endpoint URL(transaction.hook_url) in the payment request.
Once your webhook endpoint URL is setup, and you have started receiving the webhook notification, we insist you handle the notification in the following ways,
To know more about the events, types of events and samples - refer this >>link<<.
Before exposing your endpoint for realtime notifications, you need to test them first.