code: public function getPayment($paymentToken)
      {
          if (!($paymentToken instanceof GetPaymentRequest)) {
              $paymentToken = new GetPaymentRequest($paymentToken);
          }
  
          ObjectRecursiveValidator::validate($paymentToken);
          $paymentSerializer = new GetPaymentSerializer($paymentToken);
          $paymentTransport = new GetPaymentTransport($paymentSerializer);
  
          return $this->execute($paymentTransport, GetPaymentResponse::class);
      }
docs: @param string|GetPaymentRequest $paymentToken
  
  @return GetPaymentResponse|AbstractResponse
  
  @throws TransportException
  @throws JsonParseException
  @throws ResponseException
  @throws ResponseParseException