You are here

public function PaymentInterface::getPaymentMethod in Commerce Core 8.2

Gets the payment method.

Return value

\Drupal\commerce_payment\Entity\PaymentMethodInterface|null The payment method entity, or null if unknown.

1 method overrides PaymentInterface::getPaymentMethod()
Payment::getPaymentMethod in modules/payment/src/Entity/Payment.php
Gets the payment method.

File

modules/payment/src/Entity/PaymentInterface.php, line 38

Class

PaymentInterface
Defines the interface for payments.

Namespace

Drupal\commerce_payment\Entity

Code

public function getPaymentMethod();