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
Parameter | Description | Sample |
---|---|---|
Handler objectmandatory | 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
Parameter | Description | Sample |
---|---|---|
TransactionStatus Response | objectTransactionStatusResponse returns the details of transaction such as card type, card holder name, reference number etc | Refer 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();
}
};
};
Updated 3 months ago