cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Email is required in production mode

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

shahidanwer
Member
2 REPLIES 2

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

shahidanwer
Member

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.

Aaron
All Star