You are here

public function CreditCardPaymentMethodBase::getEnabledFields in Ubercart 8.4

Returns the set of fields which are used by this payment method.

Return value

array An array with keys 'cvv', 'owner', 'start', 'issue', 'bank' and 'type'.

3 calls to CreditCardPaymentMethodBase::getEnabledFields()
CreditCardPaymentMethodBase::cartDetails in payment/uc_credit/src/CreditCardPaymentMethodBase.php
Returns the form or render array to be displayed at checkout.
CreditCardPaymentMethodBase::cartProcess in payment/uc_credit/src/CreditCardPaymentMethodBase.php
Called when checkout is submitted with this payment method selected.
CreditCardPaymentMethodBase::cartReview in payment/uc_credit/src/CreditCardPaymentMethodBase.php
Returns the payment method review details.

File

payment/uc_credit/src/CreditCardPaymentMethodBase.php, line 21

Class

CreditCardPaymentMethodBase
Defines a base credit card payment method plugin implementation.

Namespace

Drupal\uc_credit

Code

public function getEnabledFields() {
  return [
    'cvv' => TRUE,
    'owner' => FALSE,
    'start' => FALSE,
    'issue' => FALSE,
    'bank' => FALSE,
    'type' => FALSE,
  ];
}