Retrieving data returned in the response

The data returned in the response depends on the parameters sent in the payment request, the payment type, the settings of your shop and the notification format.

The data is always sent by the payment gateway using the POST method.

The first step consists in retrieving the contents received via the POST method.


  • In PHP, data is stored in the super global variable $_POST,

  • In ASP.NET (C#), you must use the Form property of the HttpRequest class,

  • In Java, you must use the getParameter method of the HttpServletRequest interface.

The response consists of a field list. Each field contains a response value. The field list can be updated.

The script will have to create a loop to retrieve all the transmitted fields.

It is recommended to test the presence of the vads_hash field, which is only present during a notification.

if (empty ($_POST)){
	echo 'POST is empty';
	echo 'Data Received ';
	if (isset($_POST['vads_hash'])){
		echo 'Form API notification detected';
		//Signature computation		
		//Signature verification		
		//Order Update