Creating an immediate payment with Paylib

In the immediate payment mode, the buyer pays the total amount for the purchase at once. The payment is captured by the bank on the same day.
  1. Use all the fields presented in the table below to create your payment form.
    Table 1. Field list - Immediate payment
    Field name Description Value
    vads_site_id Shop ID E.g.: 12345678
    vads_ctx_mode Operating mode TEST or PRODUCTION
    vads_trans_id Transaction number E.g.: 123456
    vads_trans_date Date and time of the payment form in UTC format E.g.: 20140129130025
    vads_amount Payment amount (in the smallest currency unit) E.g.: 3000 for 30,00 EUR
    vads_currency Code of the currency used for the payment E.g.: 978 for euro (EUR)
    vads_action_mode Card data acquisition mode INTERACTIVE
    vads_page_action Action to perform PAYMENT
    vads_version Version of the exchange protocol V2
    vads_payment_config Payment type SINGLE
    vads_payment_card Payment method PAYLIB
    vads_capture_delay Capture delay 0
  2. Populate the vads_payment_config field with SINGLE.
  3. Set the vads_payment_card field to PAYLIB if you wish to show only the PAYLIB payment method on your payment page.
  4. Set the vads_capture_delay field to 0.
  5. Set vads_currency with the desired currency code.
    The table below shows a non-exhaustive list of available currencies. For more information, refer to the Hosted payment page implementation guide available in our online documentation archive.
    Table 2. Extract from the currency table
    Currency ISO 4217 encoding
    US Dollar 840
    Euro 978
    Swiss Franc 756
    Pound Sterling 826
  6. Add optional fields according to your requirements (see chapter Using additional features).
  7. Compute the value of the signature field using all the fields of your form that start with vads_ (see chapter Computing the signature).
Example of a form for immediate payment:
<form method="POST" action="">
<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_site_id" value="91335531" />
<input type="hidden" name="vads_trans_date" value="20190418101407" />
<input type="hidden" name="vads_trans_id" value="239848" />
<input type="hidden" name="vads_version" value="V2" />
<input type="hidden" name="signature" value="0WaYrONo3L0VZqMcvyVf8vT/g8KfZKJ+1jqiAs3Ehiw="/>
<input type="submit" name="pay" value="Pay"/>