function selection()
{
global $order;
// Payeezy currently only accepts "American Express", "Visa", "Mastercard", "Discover", "JCB", "Diners Club"
$cc_types = [];
if (CC_ENABLED_VISA == 1) {
$cc_types[] = ['id' => 'Visa', 'text' => 'Visa'];
}
if (CC_ENABLED_MC == 1) {
$cc_types[] = ['id' => 'Mastercard', 'text' => 'Mastercard'];
}
if (CC_ENABLED_DISCOVER == 1) {
$cc_types[] = ['id' => 'Discover', 'text' => 'Discover'];
}
if (CC_ENABLED_AMEX == 1) {
$cc_types[] = ['id' => 'American Express', 'text' => 'American Express'];
}
if (CC_ENABLED_JCB == 1) {
$cc_types[] = ['id' => 'JCB', 'text' => 'JCB'];
}
if (CC_ENABLED_DINERS_CLUB == 1) {
$cc_types[] = ['id' => 'Diners Club', 'text' => 'Diners Club'];
}
// Prepare selection of expiry dates