public function MolliePayment::doRefundPaymentAccess in Mollie Payment 8.2
Performs a payment method-specific access check for payment refunds.
Parameters
\Drupal\Core\Session\AccountInterface $account:
Return value
bool
Overrides PaymentMethodBase::doRefundPaymentAccess
File
- src/
Plugin/ Payment/ Method/ MolliePayment.php, line 243
Class
- MolliePayment
- A payment method using Mollie.
Namespace
Drupal\mollie_payment\Plugin\Payment\MethodCode
public function doRefundPaymentAccess(AccountInterface $account) {
return $this
->getRefund() && $this
->getPayment()
->getPaymentStatus()
->getPluginId() != $this
->getRefundStatusId();
}