I'm using this script as a basis in order to set up a payment gateway from:
http://www.weberdev.com/get_example-4169.html
I have it working on a very basic level, but I can't figure out how to pass the field names into the "add_field" class.
I've posted all the field names to the form that will be doing the processing, but I just get the "real value" of what I put in the single quotes instead of the variable value passed from the form:
EX:
One of the fields that I passed is:
$strFirstname = $_POST["firstname"];
And then later in the form, I see this:
// Setup fields for customer information. This would typically come from an
// array of POST values from a secure HTTPS form.
$a->add_field('x_first_name', 'John');
So, I try this:
// Setup fields for customer information. This would typically come from an
// array of POST values from a secure HTTPS form.
$a->add_field('x_first_name', '$strFirstname');
But the output that Authorize.net returns to me is that the first name of the person is $strFirstname. Is my snytax wrong here?
Matt