cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

AIM: Transactions by ID always returns "An error occurred during processing. Please try again.

Hi,

I am using both SIM and AIM for authorization and capture.

SIM for AUTH_ONLY as i need to do some process related to my application before capture. 

and I am using AIM PRIOR_AUTH_CAPTURE using the transaction Id received from SIM AUTH_ONLY.

 

But I am always getting the reasonrespose code and response message as RCC_3_22 and NOT FOUND.

 

"An error occurred during processing. Please try again in 5 minutes."

 

Is somethig not possible to do SIM and AIM together or something I am missing or any setting I have to do it in my sandbox accouint?

 

Thanks,

Chandra

chandu1985
Contributor
14 REPLIES 14

Look fine to me, the transaction id is not zero it is?

RaynorC1emen7
Expert

No it is not zero. i am getting proper transaction Id. (2219657248)

 

Please see code below which I am using to call AIM.

 

Merchant merchant = Merchant.createMerchant(Environment.SANDBOX, apiLoginID,
transactionKey);

Transaction authCaptureTransaction = merchant.createAIMTransaction(
TransactionType.PRIOR_AUTH_CAPTURE, new BigDecimal(1676.00));
authCaptureTransaction.setTransactionId("2219657248");

Result<Transaction> result = (Result<Transaction>)merchant.postTransaction(
authCaptureTransaction);

if (result.isApproved())
{
System.out.println("Approved!</br>");
System.out.println("Transaction Id: " + result.getTarget().getTransactionId());
} else if (result.isDeclined()) {
System.out.println("Declined.</br>");
System.out.println(result.getReasonResponseCode() + " : " + result.getResponseText());
} else {
System.out.println("Error.</br>");
System.out.println(result.getReasonResponseCode() + " : " + result.getResponseText());
}

 

 

Thanks,

Chandra

Do this simple test

https://test.authorize.net/gateway/transact.dll?....

copy the link and replace the xxxxx with your value and copy it to a web broswer url and run it.

It is an AIM transaction, see if it works.

Hi,

I have replaced with my data and It worked.

 

So what is the fix I have to do in my code?

 

Thanks,

Chandra

Your code look ok. If it only happend with the SDKs, it might be a bug in it.

Can you try an auth_capture transaction.

Tried with AUTH_CAPTURE, got the same error.

,,,,

Transaction authCaptureTransaction = merchant.createAIMTransaction(
TransactionType.AUTH_CAPTURE, new BigDecimal(1676.00));

......

 

Thanks,

Chandra

So it only failed if is using the AIM java sdks? it is always response 3,22?

Yes it is failing for AIM,

fyi., I am using below sdk.

<dependency>

<groupId>net.authorize</groupId>

<artifactId>anet-java-sdk</artifactId>

<version>1.8.1</version>

</dependency>

Can you suggest me how to fix it?