public function CreditCardPaymentMethodBase::getEnabledTypes in Ubercart 8.4
Returns the set of card types which are used by this payment method.
Return value
array An array with keys as needed by the chargeCard() method and values that can be displayed to the customer.
4 calls to CreditCardPaymentMethodBase::getEnabledTypes()
- CreditCardPaymentMethodBase::cartDetails in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Returns the form or render array to be displayed at checkout.
- CreditCardPaymentMethodBase::getDisplayLabel in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Returns the payment method label with logo.
- CreditCardPaymentMethodBase::validateCardNumber in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Validates a credit card number during checkout.
- CreditCardPaymentMethodBase::validateCvv in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Validates a CVV number during checkout.
File
- payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php, line 39
Class
- CreditCardPaymentMethodBase
- Defines a base credit card payment method plugin implementation.
Namespace
Drupal\uc_creditCode
public function getEnabledTypes() {
return [
'visa' => $this
->t('Visa'),
'mastercard' => $this
->t('MasterCard'),
'discover' => $this
->t('Discover'),
'amex' => $this
->t('American Express'),
];
}