Location: PHPKode > projects > Worldpay > WorldPayDirect/WorldPayDirect/TestForm.php
<?php

class TestForm
{
    public static function getTestForm()
    {
        $form = <<<EOF
<form method="post" action="{$_SERVER['REQUEST_URI']}">
<table>
<tr>
    <td>
        <label for="card">Card type</label>
    </td>
    <td>
        <select id="card" name="card">
            <option value="4484070000000000">Visa Purchasing</option>
            <option value="5100080000000000">Mastercard</option>
            <option value="4406080400000000">Visa Delta - UK</option>
            <option value="4462030000000000">Visa Delta - Non-UK</option>
            <option value="4911830000000">Visa - 13 digits</option>
            <option value="4917610000000000">Visa - 16 digits</option>
            <option value="370000200000000">American Express</option>
            <option value="36700102000000">Diners</option>
            <option value="3528000700000000">JCB</option>
            <option value="4917300800000000">Visa Electron</option>
            <option value="6334580500000000">Solo - 16 digits</option>
            <option value="633473060000000000">Solo - 18 digits</option>
            <option value="5700000000000000000">Maestro</option>
        </select>
        - card number is value, in live form you need to create field for card number as well
    </td>
</tr>
<tr>
    <td>
        <label for="issue">Issue number</label>
    </td>
    <td>
        <select id="issue">
            <option name="issue" value="0">0</option>
            <option name="issue" value="1">1</option>
        </select>
        - select 1 for Solo and Maestro, rest is 0
    </td>
</tr>
<!-- todo - german elv -->

<tr>
    <td>
        <label for="name">Card/Account holder name</label>
    </td>
    <td>
        <select name="name" id="name">
            <option value="3D">3D</option>
            <option value="NO3D">NO3D</option>
            <option value="REFUSED">REFUSED</option>
            <option value="REFERRED">REFERRED</option>
            <option value="FRAUD">FRAUD</option>
            <option value="ERROR">ERROR</option>
        </select>
    </td>
</tr>
<tr>
    <td>
        <label for="id">order Code</label>
    </td>
    <td>
        <input type="text" name="id" id="id" />
    </td>
</tr>
<tr>
    <td>
        <label for="desc">description</label>
    </td>
    <td>
        <input type="text" name="desc" id="desc" />
    </td>
</tr>
<tr>
    <td>
        <label for="amount">amount</label>
    </td>
    <td>
        <input type="text" name="amount" id="amount" /> - 14.75 = 1475 - type values without decimal
    </td>
</tr>
<tr>
    <td colspan="2">
        <input type="submit" value="pay biatch" name="pay" />
    </td>
</tr>
</table>
</form>
EOF;

    return $form;
    }
}
Return current item: Worldpay