Model/Factory/VaultTokenFactory.php
private function generatePublicHash(PaymentTokenInterface $paymentToken) {
        $hashKey = $paymentToken->getGatewayToken();

        if ($paymentToken->getCustomerId()) {
            $hashKey = $paymentToken->getCustomerId();
        }

        $hashKey .= $paymentToken->getPaymentMethodCode()
            . $paymentToken->getType()
            . $paymentToken->getTokenDetails();

        return $this->encryptor->getHash($hashKey);
    }
private function generatePublicHash(PaymentTokenInterface $paymentToken) {
        $hashKey = $paymentToken->getGatewayToken();

        if ($paymentToken->getCustomerId()) {
            $hashKey = $paymentToken->getCustomerId();
        }

        $hashKey .= $paymentToken->getPaymentMethodCode()
            . $paymentToken->getType()
            . $paymentToken->getTokenDetails();

        return $this->encryptor->getHash($hashKey);
    }
private function generatePublicHash ( PaymentTokenInterface $ paymentToken ) { $ hashKey = $ paymentToken -> getGatewayToken ( ) ; if ( $ paymentToken -> getCustomerId ( ) ) { $ hashKey = $ paymentToken -> getCustomerId ( ) ; } $ hashKey .= $ paymentToken -> getPaymentMethodCode ( ) . $ paymentToken -> getType ( ) . $ paymentToken -> getTokenDetails ( ) ; return $ this -> encryptor -> getHash ( $ hashKey ) ; }
Generate vault payment public hash

@param PaymentTokenInterface $paymentToken
@return string
Generate vault payment public hash