We have integrated the API and it is working fine in sandbox mode but following error comes in production:
Transaction Failed Error code : 33 Error message : Email is required.
We have already set the email as not required in payment form fields.
We are also sending the email in our code as well. see below:
// Set the customer's Bill To address
$customerAddress = new AnetAPI\CustomerAddressType();
$customerAddress->setFirstName($fName);
$customerAddress->setLastName($lName);
$customerAddress->setCompany($company);
$customerAddress->setAddress($address);
$customerAddress->setCity($city);
$customerAddress->setState($state);
$customerAddress->setZip($zip);
$customerAddress->setCountry($country);
$customerAddress->setEmail($email);
But the error still remains as it is. Please help us by pointing in right direction
Thanks
03-10-2017 06:38 AM
Can someone please reply, its very urgent to get this fixed as the website it schedule to go live on Monday 13 Mar 2017. Thanks
03-12-2017 01:36 AM
Hi @shahidanwer,
The email address is actually set in a CustomerDataType object.
I've just updated the code samples to include an example of setting an email for a transaction. My changes haven't been pulled into the main repository yet, but you can see the updated sample in my repository here.
03-15-2017 02:15 PM