Hi again,
My payment form works fine with the hardcoded dollar value in the example:
$money->setAmount(100);
However, I want to use a variable amount there, which is determined in my app depending on what the user is buying. I put that dollar value into a session variable called ‘square_total’ and want to use it in process-payment.php as follows:
$money->setAmount($_SESSION[‘square_total’]);
But I keep getting this error on the form:
“amount_money supplied was malformed”
Is there a simple way I am missing to be able to replace that hard-coded $1 in the sample code, with a variable amount determined by my local app?
Thanks!