Skip to content

Instantly share code, notes, and snippets.

@ShubhamS32
Created February 19, 2019 10:31
Show Gist options
  • Select an option

  • Save ShubhamS32/012e9eb991e40735fe4901c1518e4c4c to your computer and use it in GitHub Desktop.

Select an option

Save ShubhamS32/012e9eb991e40735fe4901c1518e4c4c to your computer and use it in GitHub Desktop.
For JSON Lopping and Paytm Check
String statusCheckOP=gratification.gratificationStatusCheckk(gratification.paytmtxtTestUrl, wp.getJSONDOC_ID());
JSONObject jsonstatusObj = new JSONObject(statusCheckOP);
JSONArray statusCode=jsonstatusObj.getJSONObject("response").getJSONArray("txnList");
for (int j = 0; j < statusCode.length(); ++j) {
JSONObject rec = statusCode.getJSONObject(j);
String loc = rec.getString("status");
wp.setPAYTMSTATUS_CODE(loc);
System.out.println("statusCode "+statusCode +": loc"+loc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment