code: protected function supports(PaymentInterface $payment)
      {
          if (null === $method = $payment->getMethod()) {
              throw new RuntimeException("Payment method must be set.");
          }
  
          if ($method->isCredit() || $method->isOutstanding()) {
              return true;
          }
  
          return false;
      }
docs: Returns whether or not the payment is supported.
  
  @param PaymentInterface $payment
  
  @return bool