protected function generateHash(
        $timestamp,
        $orderId,
        $amount,
        $currency,
        $paymentData = null,
        $verify = false
    ) {
        $data = [
            $timestamp,
            $this->merchantId,
            $orderId,
        ];

        if (false === $verify) {
            $data[] = $amount;
            $data[] = $currency;
        }

        $data[] = $paymentData;

        return GenerationUtils::generateHash(
            implode('.', $data),
            $this->sharedSecret
        );
    }
protected function generateHash(
        $timestamp,
        $orderId,
        $amount,
        $currency,
        $paymentData = null,
        $verify = false
    ) {
        $data = [
            $timestamp,
            $this->merchantId,
            $orderId,
        ];

        if (false === $verify) {
            $data[] = $amount;
            $data[] = $currency;
        }

        $data[] = $paymentData;

        return GenerationUtils::generateHash(
            implode('.', $data),
            $this->sharedSecret
        );
    }
protected function generateHash ( $ timestamp , $ orderId , $ amount , $ currency , $ paymentData = null , $ verify = false ) { $ data = [ $ timestamp , $ this -> merchantId , $ orderId , ] ; if ( false === $ verify ) { $ data [ ] = $ amount ; $ data [ ] = $ currency ; } $ data [ ] = $ paymentData ; return GenerationUtils :: generateHash ( implode ( '.' , $ data ) , $ this -> sharedSecret ) ; }
Generates a request hash from the request data

@param string $timestamp Request timestamp
@param string $orderId Request order ID
@param string $amount Request amount
@param string $currency Request currency
@param string $paymentData Request payment data
@param bool $verify Is request a verify transaction

@return string
Generates a request hash from the request data