cancel
Showing results for 
Search instead for 
Did you mean: 

Partial Authorization using the Java SDK (AIM)

Hello, 

 

I'm writing a java application using the Java SDK (AIM).

 

I try to create a method which handles partial authorization transaction.

 

I set x_allow_partial_auth=true by using merchant.setAllowPartialAuth(true);

and then created a transaction by using AUTH_ONLY.

 

The transaction was approved and I successfully got the transaction ID. 

 

But I don't know how to get and access the values of x_psplit_tender_id, x_prepaid_balance_on_card, x_prepaid_requested_amount, x_split_tender_staus for the transaction.

 

And the value of responseMap for the transaction was always null.

 

Can someone please answer this for me??

 

Transaction authCaptureTransaction = merchant.createAIMTransaction(TransactionType.AUTH_ONLY, new BigDecimal(amount));

authCaptureTransaction.setCreditCard(creditCard);

authCaptureTransaction.setCustomer(customer);

 

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

String splitTenderID = result.getTarget().getResponseField(ResponseField.SPLIT_TENDER_ID);  <- return null

 

 

 

 

kijoo86
Member
1 REPLY 1

If you are using a test account, use the test trigger

http://community.developer.authorize.net/t5/Integration-and-Testing/Triggering-Specific-Transaction-...

 

Also, read the partial authorization documentation, it might not be what you think it does.

http://www.authorize.net/support/CP/helpfiles/Account/Settings/Partial_Authorization.htm

 

RaynorC1emen7
Expert