Managing the payment methods offered to the buyer

It is possible to customize the payment methods offered to the buyer.

  1. Use all the fields required for your use case (see chapter Generating a payment form) to create your payment form.
  2. Set the vads_payment_cards field.
    • with one single value, if you do not wish to show the page of payment method selection.
    • with a list of values separated by ";" to show the page of payment method selection.
    For more information on field values, see chapter Data dictionary of the Hosted Payment Page - Implementation guide
  3. 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 payment form with payment method selection:

<form method="POST" action="">
<input type="hidden" name="vads_action_mode" value="INTERACTIVE" />
<input type="hidden" name="vads_amount" value="30000" />
<input type="hidden" name="vads_capture_delay" value="0" />
<input type="hidden" name="vads_ctx_mode" value="PRODUCTION" />					
<input type="hidden" name="vads_currency" value="978" />
<input type="hidden" name="vads_page_action" value="PAYMENT" />
<input type="hidden" name="vads_payment_cards" value="VISA;MASTERCARD;PAYLIB" />
<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="qqpxF6z1+Ri5jtkHNVDCCJulxxpJYehrfP1OLwJ4Ysg="/>
<input type="submit" name="pay" value="Pay"/>