sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Emails addresses starting with x followed by three additional x's fails with E00001

Open HeathNaylor opened this issue 8 years ago • 2 comments

Conditions

When crafting the CreateCustomerProfileRequest and populating the profile via the setProfile method with a CustomerProfileType an E00001 error is thrown when the email starts with four x characters.

Example

In this example the email [email protected] will throw an E00001 error code

$customerprofile = new AnetAPI\CustomerProfileType();
$customerprofile->setDescription('John Smith);
$customerprofile->setEmail('[email protected]');

$request = new AnetAPI\CreateCustomerProfileRequest();
$request->setMerchantAuthentication($merchantAuthentication);
$request->setProfile($customerprofile);
$controller = new AnetController\CreateCustomerProfileController($request);
$response = $controller->executeWithApiResponse( ANetEnvironment::SANDBOX );

HeathNaylor avatar Apr 27 '16 21:04 HeathNaylor

Email starting with 'xxxx' seems like a masked email address. But it should not be throwing E0001.

ashtru avatar May 16 '16 08:05 ashtru

Email starting with 'xxxx' seems like a masked email address.

The emails are certainly masked, which is what lead to the discovery of this issue.

But it should not be throwing E0001.

This issue can be observed on your own docs pages (see image attachment as well): http://developer.authorize.net/api/reference/#customer-profiles-create-customer-profile

screenshot at may 16 12-31-34

mahngiel avatar May 16 '16 16:05 mahngiel