Defining the method for receiving data

By default, the merchant website does not receive any parameters.

To retrieve information on the return page (tracking, statistics, customization of messages sent to the buyer, etc.), the merchant can override this configuration in the payment form.

  1. Use the fields required for your use case (see chapter Generating a payment form) to create your payment form.
  2. Use the optional field vads_return_mode to indicate the method for submitting data to the merchant website.
    Value Description
    Absent, vide ou NONE No information has been transmitted to the Return URL.
    GET The information has been transmitted in the URL of the return page.
    POST The information has been transmitted to the return page in an HTTP POST form.

    The GET method allows to keep a notification message from appearing when the return is done from an insecure environment (http).

  3. Compute the value of the signature field using all the fields of your form starting with vads_ (see chapter Computing the signature).
Example of a payment form with definition of the mode for data transmission:
<form method="POST" action="https://secure.payzen.eu/vads-payment/">
<input type="hidden" name="vads_action_mode" value="INTERACTIVE" />
<input type="hidden" name="vads_amount" value="3000" />
<input type="hidden" name="vads_capture_delay" value="0" />
<input type="hidden" name="vads_ctx_mode" value="TEST" />
<input type="hidden" name="vads_currency" value="978" />
<input type="hidden" name="vads_page_action" value="PAYMENT" />
<input type="hidden" name="vads_payment_config" value="SINGLE" />
<input type="hidden" name="vads_return_mode" value="GET" />
<input type="hidden" name="vads_site_id" value="12345678" />
<input type="hidden" name="vads_trans_date" value="20140526101407" />
<input type="hidden" name="vads_trans_id" value="239848" />
<input type="hidden" name="vads_url_return" value="http://demo.com/return.php" />
<input type="hidden" name="vads_version" value="V2" />
<input type="hidden" name="signature" value="86b2a17b9a5fcefb6c0120c57b25ec86ad1704ee"/>
<input type="submit" name="pay" value="Pay"/>
</form>