You are here

public function PaymentMethodRefundPaymentInterface::refundPaymentAccess in Payment 8.2

Checks if the payment can be refunded.

The payment method must have been configured and the payment must have been captured prior to refunding it.

Parameters

\Drupal\Core\Session\AccountInterface $account:

Return value

\Drupal\Core\Access\AccessResultInterface

See also

self::refundPayment

1 method overrides PaymentMethodRefundPaymentInterface::refundPaymentAccess()
PaymentMethodBase::refundPaymentAccess in src/Plugin/Payment/Method/PaymentMethodBase.php
Checks if the payment can be refunded.

File

src/Plugin/Payment/Method/PaymentMethodRefundPaymentInterface.php, line 31

Class

PaymentMethodRefundPaymentInterface
Defines a payment method that can Refund authorized payments.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function refundPaymentAccess(AccountInterface $account);