PAYZEN PAYMENT SOLUTION IMPLEMENTATION EXAMPLE

INFORMATIONS

The payment uses the sending of a payment form to PAYZEN payment gateway URL.

File config.php

Before the first use you have to fill the shopID, certTest, platform and ctxMode of the config/config.php.e. This file contains secure data. This data securing is on your responsibility.

File html-form.php

the file html-form.php sends these payment fields to theform-tunnel.php which fetch these fields to create the payment request.

These fields are filled with examples, it is up to you to fill them depending on your context and configuration.

Some other fields are available, PAYZEN support recommends to read the payment form documentation Read the documentation.

TRANSACTION SETTINGS

vads_amount Order amount set in the smallest currency unit. Cents for EURO. Ex: 1000 for 10 euros

CLIENT SETTINGS

vads_order_id Order number. Optional setting. Length of field: 32 characters max - Alphanumeric Type
vads_cust_id Customer number. Optional setting. Length of field: 32 characters max - Alphanumeric Type
vads_cust_name Customer name. Optional setting. Length of field: 127 characters max - Alphanumeric Type
vads_cust_address Customer address. Optional setting. Length of field: 255 characters max - Alphanumeric Type
vads_cust_zip Customer Postal Code. Optional setting. Length of field: 32 characters max - Alphanumeric Type
vads_cust_city Customer City. Optional setting. Length of field: 63 characters max - Alphanumeric Type
vads_cust_country Customer Country. Customer country code according to the ISO 3166 norm. Optional setting. Length of field: 2 characters max - Alphanumeric Type
vads_cust_phone Customer Phone Number. Optional setting. Length of field: 32 characters max - Alphanumeric Type
vads_cust_email Customer Email. Optional setting.

Return URLs

vads_url_return Default URL to where the buyer will be redirected. If this field has not been transmitted, the Back Office configuration will be taken into account.
vads_redirect_success_timeout delay in seconds before an automatic redirection to the merchant website at the end of an accepted payment.