Had everything working in sandbox, using PHP AIM.
Management decided to give price breaks, so now I have to check a button on the form and assign the transaction amount based on the user input.
For some reason this is breaking:
$transaction = new AuthorizeNetAIM(API_Login_ID,Transaction_Key);//my test ID and Key
if (defined(PKG_PRICE)) {
die("PKG_PRICE is defined...");
$transaction->amount = PKG_PRICE;
} else {
echo "making a good assignment now...";
$transaction->amount = $this_pkg_price;
}
echo "the transaction amount is supposed to be $this_pkg_price, but it's coming up as: ";
echo ($transaction->amount);exit;
And my output is "making a good assignment now", then "making a good assignment now
the transaction amount is supposed to be 2950, but it's coming up as: "
$transaction passes is_object(). $this_pkg_price is obviously set.
It's 4 PM here and must be something simple....