You are here

public function PaymentMethod::getPaymentGatewayMode in Commerce Core 8.2

Gets the payment gateway mode.

A payment gateway in "live" mode can't manipulate payment methods created while it was in "test" mode, and vice-versa.

Return value

string The payment gateway mode.

Overrides PaymentMethodInterface::getPaymentGatewayMode

File

modules/payment/src/Entity/PaymentMethod.php, line 109

Class

PaymentMethod
Defines the payment method entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function getPaymentGatewayMode() {
  return $this
    ->get('payment_gateway_mode')->value;
}