Created
February 19, 2019 10:31
-
-
Save ShubhamS32/012e9eb991e40735fe4901c1518e4c4c to your computer and use it in GitHub Desktop.
For JSON Lopping and Paytm Check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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