invoice number is too short,so I have to store it in a dbase table and so on....
what a pain.
however, I've done that now. and I'm trying to do a details lookup and I'm getting this error now.
Here is the code:
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
$merchantAuthentication->setName($settingArray['loginid']);
$merchantAuthentication->setTransactionKey($settingArray['transactionid']);
// Set the transaction's refId
// The refId is a Merchant-assigned reference ID for the request.
// If included in the request, this value is included in the response.
// This feature might be especially useful for multi-threaded applications.
$refId = 'ref' . time();
$request = new AnetAPI\GetTransactionDetailsRequest();
$request->setMerchantAuthentication($merchantAuthentication);
$request->setTransId($transactionId);
$controller = new AnetController\GetTransactionDetailsController($request);
$response = $controller->executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::SANDBOX);
And this is the error:
net\authorize\api\contract\v1\GetTransactionDetailsResponse Object
(
[transaction:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =>
[clientId:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =>
[transrefId:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =>
[refId:net\authorize\api\contract\v1\ANetApiResponseType:private] =>
[messages:net\authorize\api\contract\v1\ANetApiResponseType:private] => net\authorize\api\contract\v1\MessagesType Object
(
[resultCode:net\authorize\api\contract\v1\MessagesType:private] => Error
[message:net\authorize\api\contract\v1\MessagesType:private] => Array
(
[0] => net\authorize\api\contract\v1\MessagesType\MessageAType Object
(
[code:net\authorize\api\contract\v1\MessagesType\MessageAType:private] => E00003
[text:net\authorize\api\contract\v1\MessagesType\MessageAType:private] => The element 'getTransactionDetailsRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'clientId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
)
)
)
[sessionToken:net\authorize\api\contract\v1\ANetApiResponseType:private] =>
)