Creating an immediate payment

In the immediate payment mode the buyer pays the total amount for the purchase at once.

The payment is captured by the bank the same day.

  1. Use all the fields of the table below to create your payment form.
    Table 1. Field list - Immediate payment
    Field name Description Value
    vads_site_id Shop ID Eg.: 12345678
    vads_ctx_mode Operating mode TEST or PRODUCTION
    vads_trans_id Transaction number Eg.: 123456
    vads_trans_date Date and time of the payment form in UTC format Eg.: 20140129130025
    vads_amount Payment amount (in the smallest currency unit) Eg.: 3000 for 30 euros
    vads_currency Code of the payment currency Eg.: 978 for euro
    vads_action_mode Acquisition mode for credit card data INTERACTIVE
    vads_page_action Action to perform PAYMENT
    vads_version Version of the exchange protocol V2
    vads_payment_config Payment type SINGLE
    vads_capture_delay Delay before capture by the bank 0
    vads_validation_mode Validation mode 0 (Automatic)
  2. Set vads_payment_config to SINGLE.
  3. Set vads_capture_delay to 0.
  4. Set vads_validation_mode to 0 for automatic validation (the payment will be automatically captured by the bank).
  5. Fill in the vads_currency field with the code of the desired currency using the currency table (example: 978 for Euro; , 840 for US dollar).
  6. Add optional fields depending on your requirements (see chapter Using additional features).
  7. 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 form for an 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="12345678" />
<input type="hidden" name="vads_trans_date" value="20140526101407" />
<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"/>