public function generateMerchantSignatureNotification($key, $data)
    {
        $key = $this->decodeBase64($key);
        // Decode data base64
        $decode = $this->base64_url_decode($data);
        // Los datos decodificados se pasan al array de datos
        $parameters = $this->JsonToArray($decode);
        $order = $this->getOrderNotification($parameters);

        $key = $this->encrypt_3DES($order, $key);
        // Generated Hmac256 of Merchant Parameter
        $result = $this->hmac256($data, $key);

        return $this->base64_url_encode($result);
    }
public function generateMerchantSignatureNotification($key, $data)
    {
        $key = $this->decodeBase64($key);
        // Decode data base64
        $decode = $this->base64_url_decode($data);
        // Los datos decodificados se pasan al array de datos
        $parameters = $this->JsonToArray($decode);
        $order = $this->getOrderNotification($parameters);

        $key = $this->encrypt_3DES($order, $key);
        // Generated Hmac256 of Merchant Parameter
        $result = $this->hmac256($data, $key);

        return $this->base64_url_encode($result);
    }
public function generateMerchantSignatureNotification ( $ key , $ data ) { $ key = $ this -> decodeBase64 ( $ key ) ; // Decode data base64 $ decode = $ this -> base64_url_decode ( $ data ) ; // Los datos decodificados se pasan al array de datos $ parameters = $ this -> JsonToArray ( $ decode ) ; $ order = $ this -> getOrderNotification ( $ parameters ) ; $ key = $ this -> encrypt_3DES ( $ order , $ key ) ; // Generated Hmac256 of Merchant Parameter $ result = $ this -> hmac256 ( $ data , $ key ) ; return $ this -> base64_url_encode ( $ result ) ; }
Generate Merchant Signature Notification

@param string $key
@param string $data

@return string
Generate Merchant Signature Notification