src/Client.php
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);
    }
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);
    }
@param string|GetPaymentRequest $paymentToken

@return GetPaymentResponse|AbstractResponse

@throws TransportException
@throws JsonParseException
@throws ResponseException
@throws ResponseParseException