AppToApp / DeepLink

Kindly refer command below for AppToApp interation.


Request (Sample)

HashMap<String,String> map = new HashMap<>();

map.put(“Package_Name”,”[POS Application PackageName]”);
map.put(“Activity_Name”,”[POS Class going to receive the response]”);
map.put(“TransactionType”,”1”);
map.put(“TransactionAmount”,”1.00”);

Intent intent = getPackageManager().getLaunchIntentForPackage("[Get PackageName from ShareCommerce]");
intent.setAction(Intent.ACTION_SENDTO);
intent.setClassName("[Get PackageName from ShareCommerce]", "com.sc.mf919.java.activity.TransactionReceiver");
intent.setType("text/plain");
intent.putExtra("txn_map",map); 
startActivity(intent);



Response (Sample)

HashMap<String,String> map = new HashMap<>();

txn_map.put("ResponseCode",respCode);
txn_map.put("ResponseDescription",desc);
txn_map.put("TransactionType", txnType);
txn_map.put("TransactionAmount",txnAmt);
txn_map.put("TransactionMID",mid);
txn_map.put("TransactionTID",tid);
txn_map.put("TransactionSTN",stan);
txn_map.put("TransactionRRN",rrn);
txn_map.put("TransactionBatchNo",batchNo);
txn_map.put("TransactionApplicationLabel",appLabel);
txn_map.put("TransactionCardNo",cardMask);
txn_map.put("TransactionEntryType",entryMode);
txn_map.put("TransactionARQC",arqc);
txn_map.put("TransactionTVR",tvr);
txn_map.put("TransactionAID",aid);
txn_map.put("TransactionCVM",cvm);
txn_map.put("TransactionTSI",tsi);
txn_map.put("TransactionApprovalCode",apprCode);
txn_map.put("TransactionInvoice",invNo);
txn_map.put("TransactionSchemeID",schemeId);
txn_map.put("TransactionDateTime",txnDt);


Intent intent_transmit = getPackageManager().getLaunchIntentForPackage("[POS Application PackageName]");
intent_transmit.setAction(Intent.ACTION_SEND);
intent_transmit.setClassName("[POS Application PackageName]", "[POS Application ActivityName]");
intent_transmit.putExtra("txn_map",map);
startActivity(intent_transmit);
Last updated on 6th Aug 2024