You are here

public function PaymentGatewayBase::getMode in Commerce Core 8.2

Gets the mode in which the payment gateway is operating.

Return value

string The machine name of the mode.

Overrides PaymentGatewayInterface::getMode

2 calls to PaymentGatewayBase::getMode()
PaymentGatewayBase::getRemoteCustomerId in modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php
Gets the remote customer ID for the given user.
PaymentGatewayBase::setRemoteCustomerId in modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php
Sets the remote customer ID for the given user.

File

modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php, line 215

Class

PaymentGatewayBase
Provides the base class for payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

public function getMode() {
  return $this->configuration['mode'];
}