I'm trying to test the getCustomerProfileRequest in the C# api but my response is always null. This is what i have so far:
ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
name = _credentials.LoginId,
ItemElementName = ItemChoiceType.transactionKey,
Item = _credentials.ApiKey
};
var request = new getCustomerProfileRequest { customerProfileId = customerProfileId.Value };
var controller = new getCustomerProfileController(request);
controller.Execute();
var response = controller.GetApiResponse();Is there any reason this would be null? It's not invalid credentials or anything like that. Always null. If I put in invalid credentials the result will be an error saying invalid credentials. I know for a fact there is a customer profile for the given customerProfileId because results are returned by the soap requests.
04-18-2017 10:33 AM