You are here

public function Payment::getPaymentGatewayMode in Commerce Core 8.2

Gets the payment gateway mode.

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

Return value

string The payment gateway mode.

Overrides PaymentInterface::getPaymentGatewayMode

File

modules/payment/src/Entity/Payment.php, line 103

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

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