Menu

Get Bank Account Merchant Transaction ID

GetBankAccount for a Merchant Transaction ID are processed on the Base Commerce Platform using the BankAccountTransaction object to encapsulate all of the data needed. It is processed using the BaseCommercePayClient getBankAccountTransactionByMerchantTransactionID() method.

Process a getBankAccountTransactionByMerchantTransactionID: 

Returned
Method on BankAccountTransaction
Parameters

Description

List<BankAccountTransaction> getBankAccountTransactionByMerchantTransactionID

Merchant Transaction ID

  • Type : String
Only one Merchant Transaction ID is sent

Example getBankAccountTransactionByMerchantTransactionID:

BaseCommerceClient o_client = new BaseCommerceClient(XS_USERNAME, XS_PASSWORD, XS_KEY);
o_client.setSandbox(true)
String s_merchant_transaction_id = "4";
       
List<BankAccountTransaction> o_bat_list = o_client.getBankAccountTransactionByMerchantTransactionID(s_merchant_transaction_id);
System.out.println("BAT List Size: " + o_bat_list.size());
for( BankAccountTransaction o_bat : o_bat_list ) {
    if( o_bat.getMessages() != null && !o_bat.getMessages().isEmpty() ) {
        System.out.println( "error messages: " + o_bat.getMessages() );
    } else {
        System.out.println("o_bat id: " + o_bat.getBankAccountTransactionId());
    }
}