Description
This call function is used to obtain card information (Track2 data) by means of swiping the card on the payment device.
Card Query Request
Sample code
private String appURL = "payment.thumbzup.com";
private String appClass = "payment.thumbzup.com.IntentActivity";
Intent intent = new Intent();
intent.setClassName(appURL, appClass);
Bundle dataBundle = new Bundle();
dataBundle.putString("launchType", "CARDQUERY");
dataBundle.putString("applicationKey", "2fdca02f-3cbe-4e8c-82ad-86a1a16b72e7");
dataBundle.putString("merchantID", "910100000000001");
dataBundle.putString("merchantUsername", "default");
dataBundle.putString("authenticationKey", "c282cdd3-59d2-42ff-8c96-826725a27e6e");
intent.putExtra("thumbzupBundle", dataBundle);
startActivityForResult(intent, 0);
Card Query Response
Sample code
@Overide
protected void onActivityResult(int requestCode, int resCode, Intent data) {
String result = "";
Bundle b = new Bundle(data.getBundleExtra("ThumbzupApplicationResponse"));
if(resCode == Activity.RESULT_OK) {
// handle ok result
String launchType = b.getString("launchType");
String resultCode = b.getString("resultCode");
String track1Data = b.getString("track1Data");
String track2Data = b.getString("track2Data");
String panData = b.getString("panData");
Card Query Response if not Whitelisted
fwUpdateDate=null
buildInfo=THUMBZUP_INT applicationKey=6397dead-7d4b-47f7-a0a5-71e5d1705fc4
fwUpdateVersion=null
pebbleFirmwareVersion=v3.1.4
fwUpdateAvailable=false
overrideMerchantNumber=null merchantID=910300000000015 merchantUsername=default
pebbleSerialNumber=
B26700220006EF9FFF0608D751 thirdPartyUsername=null
isApproved=null
launchType=CARDQUERY
keepAliveAfterExit=0
merchantName=Mehroze Dev deviceIMEI=353266080214059
appVersion=3.21.230
Card Query Response if Whitelisted
fwUpdateDate=null
buildInfo=THUMBZUP_INT applicationKey=6397dead-7d4b-47f7-a0a5-71e5d1705fc4
fwUpdateVersion=null
pebbleFirmwareVersion=v3.1.4
fwUpdateAvailable=false
overrideMerchantNumber=null
merchantID=910300000000015
merchantUsername=default
pebbleSerialNumber= B26700220006EF9FFF0608D751
thirdPartyUsername=null
isApproved=
launchType=CARDQUERY
keepAliveAfterExit=0
merchantName=Mehroze Dev
deviceIMEI=353266080214059
appVersion=3.21.230