Menu

Get Bank Card Merchant Transaction ID

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

Process a getBankCardTransactionByMerchantTransactionID

Returned
Method on BankCardTransaction
Parameters

Description

List<BankCardTransaction> getBankCardTransactionByMerchantTransactionID

Merchant Transaction ID

  • Type : String
Only One Merchant Transaction ID is Sent

Example getBankCardTransactionByMerchantTransactionID:

BaseCommerceClient o_client = new BaseCommerceClient(XS_USERNAME, XS_PASSWORD, XS_KEY);
o_client.setSandbox(true);
String s_merchant_transaction_id = "6";
 
List<BankCardTransaction> o_bct_list = o_client.getBankCardTransactionByMerchantTransactionID(s_merchant_transaction_id);
System.out.println("BCT List Size: " + o_bct_list.size());
for(BankCardTransaction o_bct : o_bct_list) {
    if( o_bct.getMessages() != null && !o_bct.getMessages().isEmpty() ) {
        System.out.println( "error messages: " + o_bct.getMessages() );
    } else {
        System.out.println("bct_id: " + o_bct.getTransactionId());
    }
}