You are here

protected function PaymentMethodBase::doRefundPaymentAccess in Payment 8.2

Performs a payment method-specific access check for payment refunds.

Parameters

\Drupal\Core\Session\AccountInterface $account:

Return value

bool

1 call to PaymentMethodBase::doRefundPaymentAccess()
PaymentMethodBase::refundPaymentAccess in src/Plugin/Payment/Method/PaymentMethodBase.php
Checks if the payment can be refunded.
2 methods override PaymentMethodBase::doRefundPaymentAccess()
Basic::doRefundPaymentAccess in src/Plugin/Payment/Method/Basic.php
Performs a payment method-specific access check for payment refunds.
PaymentTestNoResponse::doRefundPaymentAccess in modules/payment_test/src/Plugin/Payment/Method/PaymentTestNoResponse.php
Performs a payment method-specific access check for payment refunds.

File

src/Plugin/Payment/Method/PaymentMethodBase.php, line 323

Class

PaymentMethodBase
A base payment method plugin.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

protected function doRefundPaymentAccess(AccountInterface $account) {

  // Child classes must override this method to support payment refund.
  return AccessResult::forbidden();
}