function _commerce_sagepay_all_card_names in Drupal Commerce SagePay Integration 7
Helper function to use Commerce to fetch the Card names.
4 calls to _commerce_sagepay_all_card_names()
- commerce_sagepay_form_alter in ./
commerce_sagepay.module - Implements hook_form_alter().
- commerce_sagepay_settings_form in includes/
commerce_sagepay.admin.inc - Settings form containing all configuration for the SagePay module.
- _commerce_sagepay_all_card_types in includes/
commerce_sagepay_utils.inc - The card types that SagePay supports.
- _commerce_sagepay_populate_card_names in includes/
commerce_sagepay_utils.inc - Populate the card names in to a usable array.
File
- includes/
commerce_sagepay_utils.inc, line 12 - commerce_sagepay_utils.inc Common utilities shared by all Integration methods.
Code
function _commerce_sagepay_all_card_names() {
return array(
'visa' => 'Visa',
'visaelectron' => 'Visa Electron',
'mastercard' => 'Mastercard',
'amex' => 'American Express',
'delta' => 'Delta',
'dc' => 'Diners Club',
'jcb' => 'JCB',
'laser' => 'Laser',
'maestro' => 'Maestro',
);
}