You are here

public function PaymentGatewayStorageInterface::loadForUser in Commerce Core 8.2

Loads the default payment gateway for the given user.

Used primarily when adding payment methods from the user pages. Thus, only payment gateways which support storing payment methods are considered.

Parameters

\Drupal\user\UserInterface $account: The user account.

Return value

\Drupal\commerce_payment\Entity\PaymentGatewayInterface The payment gateway.

1 method overrides PaymentGatewayStorageInterface::loadForUser()
PaymentGatewayStorage::loadForUser in modules/payment/src/PaymentGatewayStorage.php
Loads the default payment gateway for the given user.

File

modules/payment/src/PaymentGatewayStorageInterface.php, line 27

Class

PaymentGatewayStorageInterface
Defines the interface for payment gateway storage.

Namespace

Drupal\commerce_payment

Code

public function loadForUser(UserInterface $account);