private function decrypt($string = "")
    {
        $key = $this->config->get('gateway.asanpardakht.key');
        $iv = $this->config->get('gateway.asanpardakht.iv');

        try {

            $soap = new SoapClient("https://services.asanpardakht.net/paygate/internalutils.asmx?WSDL");
            $params = array(
                'aesKey' => $key,
                'aesVector' => $iv,
                'toBeDecrypted' => $string
            );

            $response = $soap->DecryptInAES($params);
            return $response->DecryptInAESResult;

        } catch (\SoapFault $e) {
            return "";
        }
    }
private function decrypt($string = "")
    {
        $key = $this->config->get('gateway.asanpardakht.key');
        $iv = $this->config->get('gateway.asanpardakht.iv');

        try {

            $soap = new SoapClient("https://services.asanpardakht.net/paygate/internalutils.asmx?WSDL");
            $params = array(
                'aesKey' => $key,
                'aesVector' => $iv,
                'toBeDecrypted' => $string
            );

            $response = $soap->DecryptInAES($params);
            return $response->DecryptInAESResult;

        } catch (\SoapFault $e) {
            return "";
        }
    }
private function decrypt ( $ string = "" ) { $ key = $ this -> config -> get ( 'gateway.asanpardakht.key' ) ; $ iv = $ this -> config -> get ( 'gateway.asanpardakht.iv' ) ; try { $ soap = new SoapClient ( "https://services.asanpardakht.net/paygate/internalutils.asmx?WSDL" ) ; $ params = array ( 'aesKey' => $ key , 'aesVector' => $ iv , 'toBeDecrypted' => $ string ) ; $ response = $ soap -> DecryptInAES ( $ params ) ; return $ response -> DecryptInAESResult ; } catch ( \ SoapFault $ e ) { return "" ; } }
Decrypt string by key and iv from config

@param string $string
@return string
Decrypt string by key and iv from config