sdk-php
sdk-php copied to clipboard
Emails addresses starting with x followed by three additional x's fails with E00001
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 );
Email starting with 'xxxx' seems like a masked email address. But it should not be throwing E0001
.
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
