src/TransactionService.php
private function toSha256($fields, $secret)
    {
        $hasData = '';

        foreach ($this->getHashKeys() as $key) {
            if (isset($fields[$key])) {
                $hasData .= $fields[$key];
            }
        }
        $hasData .= $secret;
        return hash('sha256', trim($hasData));
    }
private function toSha256($fields, $secret)
    {
        $hasData = '';

        foreach ($this->getHashKeys() as $key) {
            if (isset($fields[$key])) {
                $hasData .= $fields[$key];
            }
        }
        $hasData .= $secret;
        return hash('sha256', trim($hasData));
    }
private function toSha256 ( $ fields , $ secret ) { $ hasData = '' ; foreach ( $ this -> getHashKeys ( ) as $ key ) { if ( isset ( $ fields [ $ key ] ) ) { $ hasData .= $ fields [ $ key ] ; } } $ hasData .= $ secret ; return hash ( 'sha256' , trim ( $ hasData ) ) ; }
Get calculated signature

@param array $fields
@param string $secret
@return string
@since 2.3.1
Get calculated signature