• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
docs.
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

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.

Examples:

  • 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';
}else{
echo 'Data Received ';
if (isset($_POST['vads_hash'])){
echo 'Form API notification detected';
//Signature computation		
//Signature verification		
//Order Update
} 
}

Jobs
Legal
GDPR
25.18-1.11