Creating a paydirekt payment request
- Use all the required fields in the table below to create your payment form.
Field name Description Format Value vads_payment_cards Allows to force the card type to use. Leave empty to let the Buyer choose between the eligible payment methods (depending on the currency, the minimum or maximum amount, the technical constraints) associated with the shop.
enum - PAYDIREKT to directly call the paydirekt payment button.
- VISA;PAYDIREKT to provide the choice between VISA and paydirekt.
vads_ctx_mode Mode of interaction with the payment gateway enum TEST orPRODUCTION vads_order_id Order ID Can contain uppercase or lowercase characters, numbers or hyphens ([A-Z] [a-z], 0-9, _, -).
ans..64 E.g.: 2-XQ001 vads_order_id Order ID. If the field is not transmitted, the payment method will not be offered.
Accepted characters are:
- a b c d e f g h i j k l m n o p q r s t u v w x y z
- A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
- 0 1 2 3 4 5 6 7 8 9
- _-
ans..20 E.g.: 12345678-1111234 vads_page_action Action to perform enum PAYMENT vads_amount Payment amount in the smallest currency unit (cents for euro) n..12 E.g.: 4525 for EUR 45.25 vads_currency Numeric currency code to be used for the payment, in compliance with the ISO 4217 standard (numeric code). n3 Possible values: - 978 (EUR)
vads_action_mode Acquisition mode for payment method data enum INTERACTIVE vads_cust_email Buyer’s e-mail address ans..150 E.g.: abc@example.com vads_payment_config Payment type enum SINGLE vads_site_id Shop ID n8 E.g.: 12345678 vads_trans_date Date and time of the payment form in UTC format n14 Respect the YYYYMMDDHHMMSS format
E.g.: 20200101130025vads_trans_id Transaction number. Must be unique within the same day (from 00:00:00 UTC to 23:59:59 UTC).
Warning: this field is not case sensitive.
an6 E.g.: xrT15p vads_version Version of the exchange protocol with the payment gateway enum V2 signature Signature guaranteeing the integrity of the requests exchanged between the merchant website and the payment gateway. ans E.g.: NM25DPLKEbtGEHCDHn8MBT4ki6aJI/ODaWhCzCnAfvY= - Use the fields recommended below for transmitting the shipping address. If these fields are not transmitted, another page will be displayed to the buyer allowing him or her to proceed to entering those details on the payment page.
Field name Description Format Value vads_ship_to_first_name First name ans..63 E.g.: Albert vads_ship_to_last_name Last name ans..63 E.g.: Durant vads_ship_to_street_number Street number ans..64 E.g.: 2 vads_ship_to_street Postal address ans..255 E.g.: Rue Sainte Catherine vads_ship_to_street2 Address line 2 ans..255 vads_ship_to_zip Zip code an..64 E.g.: 33000 vads_ship_to_city City an..128 E.g.: Bordeaux vads_ship_to_country Country code in compliance with the ISO 3166 standard (required for triggering one or more actions if the Shipping country control profile is enabled). a2 E.g.: FR - Add optional fields depending on your requirements (see chapter Using additional features of the Hosted Payment Page Implementation Guide available on our website).
- Compute the value of the signature field using all the fields of your form that start with vads_ (see chapter Computing the signature of the Hosted Payment Page Implementation Guide available on our website).