I have to collect the value of the Grand Total of the cart and pass it to the bank site with no formatting and multiplied by 100.
The bankers said that I have to collect the value on a session variable, for example like this:
if (!session_id()) session_start();
$_SESSION["Amount"] = "".($ShoeCart->GrandTotal() * 100) ."";
and then send the value on a hidden form element like this:
<input name="Amount" type="hidden" id="Amount" value="<?php echo $_SESSION['Amount']; ?>" />
I don't know if I am writting the code properly and if I am doing it well.
Please help me.
Thank you so much.