We offer a web-hook that was developed to send data to an external URL as part of the payment process. In the database we store the url, the password for bearer authentication header, and the template json, where we replace the values. For more information on using the webhook, please contact us.

This is how we activate the web hook on our side:

HttpClient client = new HttpClient();

HttpClient client = new HttpClient();

StringContent content = new StringContent(replacedString, Encoding.UTF8, "application/json");
client.DefaultRequestHeaders.Authorization = new

System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", webHook.WebHookHeader);
client.DefaultRequestHeaders.Accept.Add(new

System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));//ACCEPT header

var response = await client.PostAsync(webHookURL, content);

var responseString = await response.Content.ReadAsStringAsync();


And this is an example of the json template that we send:

{"currency":"{currency}","transaction_id":"{donid}","amount":{sum},"error_code":{error_code},"error_details":"{error_message}","unix_timestamp":{time_stamp}}

The tokens are being replaced with the live data, and then posted using code above to URL stored in the database.

Did this answer your question?