Reply
Highlighted
Contributor
Posts: 10
Registered: ‎04-30-2013

AIM and Split Tender Transactions

Hi,

 

I hope this doesnt sound like a stupid question, but is it possible to have split tender transactions in a card-not-present, adavanced integration method environment?  I would like to allow the consumer to use more than one card per transaction .

 

Thanks for your help!

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

Re: AIM and Split Tender Transactions

Yes. it work for both.

Highlighted
Contributor
Posts: 10
Registered: ‎04-30-2013

Re: AIM and Split Tender Transactions

Thanks!  Do you have a sample of what the code would look like for 2 cards?  I would really appreciate it.

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

Re: AIM and Split Tender Transactions

Sorry. I don't, maybe someone else would post their.

Highlighted
Member
Posts: 4
Registered: ‎09-05-2013

Re: AIM and Split Tender Transactions

I am dioing CP Split Tender Transactions and i could see the SplitTrederId in the response. See below.

 

<?xml version="1.0" ?><response><ResponseCode>4</ResponseCode><Messages><Message><Code>295</Code><Description><![CDATA[The amount of this request was only partially approved on the given prepaid card. An additional payment is required to fulfill the balance of this transaction.]]></Description></Message></Messages><AuthCode><![CDATA[CIG3S4]]></AuthCode><AVSResultCode>Y</AVSResultCode><CVVResultCode></CVVResultCode><TransID>2197999479</TransID><RefTransID></RefTransID><TransHash>DD826802CF0508503E51990DB0C2F76E</TransHash><TestMode>0</TestMode><UserRef></UserRef><AccountNumber>XXXX1111</AccountNumber><AccountType>Visa</AccountType><SplitTenderID>110762</SplitTenderID><PrepaidCard><RequestedAmount>50000.00</RequestedAmount><ApprovedAmount>1.23</ApprovedAmount><BalanceOnCard></BalanceOnCard></PrepaidCard></response>

 

But not able to get this value using API. below my code :

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

log.debug("Split"
                + result.getTarget().getResponseField(
                        ResponseField.SPLIT_TENDER_ID)); --> this is returning me null.

 

I am using

import net.authorize.aim.Transaction;
import net.authorize.aim.cardpresent.Result;

 

to post a transaction and reading the result. Any input? thanks.

Highlighted
Member
Posts: 4
Registered: ‎09-05-2013

Re: AIM and Split Tender Transactions

[ Edited ]

I got it by reading response XML:

private String getSplitTenderId(Result<Transaction> result) {
        return (null == result ? null : BasicXmlDocument.getElementText(result
                .getTarget().getCurrentResponse().getDocumentElement(),
               "SplitTenderID"));
    }