HSBC.php

<?php /** * @desc Class to process payment using HSBC gateway * This class will return orderhash * 18-Dec-2006 */ class HSBC{ var $storeFrontId; var $hashFilePath; var $CPIhash; var $orderHash; /** * @desc initialize configuration arguements.

Read more...


function.php

<?php /** * @desc Function to print variable for debugging */ function printPre($data, $extended=false) { echo "<pre>"; if($extended) { var_dump($data); } else { print_r($data); } echo "</pre>"; } ?

Read more...


hsbc_return.php

    <?php
       
        require_once "function.php";
        require_once "HSBC.php";
        printPre($_POST);
       
        $h1 = new HSBC();
        echo $h1->error($_POST['CpiResultsCode']);
    ?>

Hi all

This is my first Blog Post. I’ll Update this blog with useful info[ hope so:) ]