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
โ09-15-2014 04:13 PM
Look fine to me, the transaction id is not zero it is?
โ09-15-2014 04:28 PM
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
โ09-15-2014 04:35 PM
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.
โ09-15-2014 05:15 PM - edited โ09-15-2014 05:16 PM
Hi,
I have replaced with my data and It worked.
So what is the fix I have to do in my code?
Thanks,
Chandra
โ09-15-2014 07:54 PM
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.
โ09-16-2014 04:33 AM - edited โ09-16-2014 04:34 AM
Tried with AUTH_CAPTURE, got the same error.
,,,,
Transaction authCaptureTransaction = merchant.createAIMTransaction(
TransactionType.AUTH_CAPTURE, new BigDecimal(1676.00));
......
Thanks,
Chandra
โ09-16-2014 08:09 AM
So it only failed if is using the AIM java sdks? it is always response 3,22?
โ09-16-2014 08:39 AM
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>
โ09-16-2014 10:13 AM
Can you suggest me how to fix it?
โ09-16-2014 11:17 AM