You are here

function _commerce_worldpay_bg_payment_card_types in Commerce Worldpay 7

Returns the supported payment card types.

Return value

An array of supported card types.

3 calls to _commerce_worldpay_bg_payment_card_types()
commerce_worldpay_bg_settings_form in ./commerce_worldpay_bg.module
Settings form for Worldpay payment method.
commerce_worldpay_bg_submit_form in ./commerce_worldpay_bg.module
Payment method callback: submit form.
commerce_worldpay_bg_submit_form_validate in ./commerce_worldpay_bg.module
Payment method callback: submit form validation.

File

./commerce_worldpay_bg.module, line 945
Provides a Worldpay Business Gateway payment method for Drupal Commerce.

Code

function _commerce_worldpay_bg_payment_card_types() {
  return array(
    'VISA' => t('Visa Credit'),
    'VISD' => t('Visa Debit'),
    'VIED' => t('Visa Electron'),
    'VISP' => t('Visa Purchasing'),
    'MSCD' => t('Mastercard'),
    'DMC' => t('Mastercard Debit'),
    'MAES' => t('Maestro'),
    'AMEX' => t('American Express'),
  );
}