Receiving webhooks

After you have registered your simplified webhooks for merchant IDs or payout account IDs that you want, you must be ready to receive the webhook.

In order to receive and use webhook responses for your site, do the following:

  1. Listen for Nexio's POST requests on the URL you provided in step 4 of the Registering webhooks tutorial.

    The body of the request includes the eventType and a little information about the event that you can use to determine what to do with the webhook.

  2. Save the JSON as a string called body.

    Transaction Event Example Body
    {
      "eventType": "TRANSACTION",
      "transactionStatus": 10,
      "processMethod": 10,
      "transactionId": 211302211
    }
    
  3. From the string you saved as body (step 2), use the eventType and other parameters to determine what action, if any, to take as a result of this webhook.


Did this page help you?