EMI Tenure List

Method: POST

Get EMI Tenure list from the corresponding bank 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 messagehandler
Amount

mandatory
string The amount that is being used for the transaction.2000.00
selectedBankDetails

mandatory
object The bank which is selected to process the EMI transaction (selected from EMI list VO).Bank Details

Sample request

initialization.getSelectedBankEMITenureList(selectedbankhandler, amount,
selectedBankDetails);

Response parameters

ParameterDescriptionSample
ArrayListobject Returns the list of the available banks' name and the minimum transaction amount.Refer to ACQUIRERBANKS payload objects.

Sample response

Use this code to fetch the response for this API.

@SuppressLint("HandlerLeak")
private final Handler selectedbankhandler = new Handler()
{
	@SuppressWarnings("unchecked")
	public void handleMessage(android.os.Message msg)
	{
		if (msg.what == SUCCESS)
		{
			acquirerBanks = new AcquirerBanks();
			acquirerBanks = (AcquirerBanks) msg.obj;
			emiDetails = new ArrayList<EMI> ();
			emiDetails = acquirerBanks.getEmiDetails();
			if (emiDetails != null && emiDetails.size() > 0)
			{
				EmiListAdapter emiadapter = new EmiListAdapter(EmiPayment.this,
					R.layout.emi_options, emiDetails);
				emilist.setAdapter(emiadapter);
				emilist.setOnItemClickListener(EmiPayment.this);
			}
		}
		else if (msg.what == FAIL)
		{
			Toast.makeText(getApplicationContext(), msg.obj.toString(),
				Toast.LENGTH_LONG).show();
		}
	};
};