IPay Generate Hash ID

<?php
                                                $datastring = "key1=".$value1."&key2=".$value2
                                                /*************************************************************************************************/
                                                $hashkey = "yoursecuritykey"; //Supplied during iPay account registration;
                                                $datastring; //This is a string generated from the data to be posted (see above)
                                                $hashid = hash_hmac("sha256", $datastring, $hashkey); //
                                            ?>
Said HR