Posts: 2
Registered: ‎03-10-2017

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();



But the error still remains as it is. Please help us by pointing in right direction



Posts: 2
Registered: ‎03-10-2017

Re: Email is required in production mode

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

Posts: 384
Registered: ‎11-03-2016

Re: Email is required in production mode

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 Wright
Developer Advocate - Authorize.Net

Follow Authorize.Net developer news on Twitter!