Reply
Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

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

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

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

Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

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

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

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

[ Edited ]

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.

Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

Hi,

I have replaced with my data and It worked.

 

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

 

Thanks,

Chandra

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

[ Edited ]

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.

Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

Tried with AUTH_CAPTURE, got the same error.

,,,,

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

......

 

Thanks,

Chandra

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

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

Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

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>

Highlighted
Contributor
Posts: 12
Registered: ‎09-15-2014

Re: AIM: Transactions by ID always returns &quot;An error occurred during processing. Please try

Can you suggest me how to fix it?