cancel
Showing results for 
Search instead for 
Did you mean: 

Prior Authorization AIM Java Coding Issue

To whom it may concern,

 

I am currently building a Java Software and trying to integrate AIM Authorize.net with my software.  I am able to successfully create an Authorize Only Transaction (inserts order w/ pricing, customer information, billing information, invoice #, etc.).  When the CC is accepted, I store the Authorization Code and Transaction ID in my database.  Now, when I want to run a sale and charge the customer, I use the PRIOR_AUTH_CAPTURE method.  However, the authorization amount is captured and not the new amount that is less than the authorization amount.  Any help will greatly be appreciated.  The code is as follows:

 

Transaction priorAuthTransaction = merchant.createAIMTransaction(TransactionType.PRIOR_AUTH_CAPTURE,null);
priorAuthTransaction.setMerchantDefinedField("x_trans_id", transactionId);
priorAuthTransaction.setMerchantDefinedField("x_amount", String.valueOf(amtDue));
Result<Transaction> result = (Result<Transaction>)
merchant.postTransaction(priorAuthTransaction);

 

-Zack

zackhonig1
Member
1 REPLY 1

merchant.createAIMTransaction(TransactionType.PRIOR_AUTH_CAPTURE,null);

instead of null, pass in the amount as Decimal.

RaynorC1emen7
Expert