Contents |
Retrieves string of pay type options to be used in a <SELECT> tag. Typically used in the payment checkout template.
$string = eV::orderPayTypeOptions($payType=NULL);
String of option tags to be placed inside a <SELECT> tag.
// set a pre selected pay type $payType = "MC"; // get the option tags $payTypeOptions = eV::orderPayTypeOptions($payType); // output the results in a form echo "<form action=\"index.php\" method=\"post\">"; echo "<select name=\"payType\">" . $payTypeOptions . "</select>"; echo "<input type=\"submit\" value=\"go!\"> echo "</form>";