Generating a payment form

To generate a payment request, you must create an HTML form as follows:
<form method="POST" action="https://secure.payzen.eu/vads-payment/">
	<input type="hidden" name="parameter1" value="value1" />
	<input type="hidden" name="parameter2" value="value2" />
	<input type="hidden" name="parameter3" value="value3" />
	<input type="hidden" name="signature" value="signature"/>
	<input type="submit" name="pay" value="Pay"/>
</form>

It contains:

The following technical elements:

  • The <form> and </form> tags that allow to create an HTML form.
  • The method="POST" attribute that defines the method used for sending data.
  • The action="https://secure.payzen.eu/vads-payment/" attribute that defines where to send the form data.

Form data:

  • Shop ID,
  • Information about the payment depending on the use case ,
  • Additional information, depending on your requirements ,
  • Signature that certifies the integrity of the form.

This data is added to the form by using the <input> tag:

<input type="hidden" name="parameter1" value="value1" />

For setting the name and value attributes, see chapter Data dictionary.

All the data in the form must be encoded in UTF-8.

Special characters (accents, punctuation marks, etc.) will then be correctly interpreted by the payment gateway. Otherwise, the signature will not be computed correctly and the form will be rejected.

The Pay button that will allow to send data:

<input type="submit" name="pay" value="Pay"/>