Transaction Details

Method: POST

Use this API to get the transaction details.

Create a PaymentInitialization class object and call initiateTransactionDetails() method by passing the parameters mentioned in the request parameter table.

Request parameters

ParameterDescriptionSample
Handler object
mandatory
handler Create a handler inner class. This class will return response message.handler
RefNO
mandatory
string Pass transaction reference number that returns the initiateTransaction response.Refer to ICCTRANSACTIONRESPONSE payload objects.
merchantRefNo

mandatory
string Pass merchant reference number.123654789
appName

Optional
string The name of the application.null
appVersion

Optional
string The version of the application.null
Transaction Type

Optional
string Pass the Type of the transaction (Available inside Payment TransactionConstants class)MICRO_ATM

Sample request

try
{
	Bitmap bitmap = BitmapFactory.decodeFile(SignatureCaptureActivity.this.getFilesDir()
		.getPath() + SIGNATURE);
	PaymentInitialization initialization = new PaymentInitialization(SignatureCaptureActivity.this);
	initialization.initiateSignatureCapture(handler,
		iccTransactionResponse.getReferenceNumber(), UtilManager.convertBitmapToByteArray(bitmap));
}
catch (RuntimeException e)
{
	e.printStackTrace();
}

Response parameters

ParameterDescriptionSample
TransactionStatus ResponseobjectTransactionStatusResponse returns the details of transaction such as card type, card holder name, reference number etcRefer to TRANSACTIONRESPONSE payload objects.

Sample response

@SuppressLint("HandlerLeak")
private final Handler handler = new Handler() {
public void handleMessage(android.os.Message msg) {
if (msg.what == SUCCESS) {
Toast.makeText(SendSMSEmail.this, getString(R.string.success),
Toast.LENGTH_LONG).show();
finish();
} else if (msg.what == FAIL) {
Toast.makeText(SendSMSEmail.this, (String) msg.obj,
Toast.LENGTH_LONG).show();
finish();
} else if (msg.what == ERROR_MESSAGE) {
Toast.makeText(SendSMSEmail.this, (String) msg.obj,
Toast.LENGTH_LONG).show();
finish();
}
};
};