frontend/components/payments/CuropaymentsPaymentGateway.php
/**
     * Checks is response from curopayments is valid
     *
     * @param  array  $response
     * @return boolean
     */
Checks is response from curopayments is valid
@param  array  $response
@return boolean
Checks is response from curopayments is valid @param array $response @return boolean
public function isValidResponse($response)
    {
        if (isset($response['transaction']) &&
            isset($response['code']) &&
            isset($response['reference']) &&
            isset($response['hash']) &&
            isset($response['currency']) &&
            isset($response['amount'])) {
            $hash = md5($response['transaction'].$response['currency'].$response['amount'].$response['reference'].$response['code'].$this->hashKey);
            return ($hash == $response['hash']);
        }
        return false;
    }
public function isValidResponse ( $ response ) { if ( isset ( $ response [ 'transaction' ] ) && isset ( $ response [ 'code' ] ) && isset ( $ response [ 'reference' ] ) && isset ( $ response [ 'hash' ] ) && isset ( $ response [ 'currency' ] ) && isset ( $ response [ 'amount' ] ) ) { $ hash = md5 ( $ response [ 'transaction' ] . $ response [ 'currency' ] . $ response [ 'amount' ] . $ response [ 'reference' ] . $ response [ 'code' ] . $ this -> hashKey ) ; return ( $ hash == $ response [ 'hash' ] ) ; } return false ; }
Checks is response from curopayments is valid
 @param  array  $response
 @return boolean
Checks is response from curopayments is valid @param array $response @return boolean