File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/main/java/com/paymentwall/java/response Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.paymentwall</groupId >
8
8
<artifactId >paymentwall-java</artifactId >
9
- <version >2.0.0 </version >
9
+ <version >2.0.2 </version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >Paymentwall java library</name >
Original file line number Diff line number Diff line change @@ -19,11 +19,17 @@ else if (name.equals(RESPONSE_SECURE))
19
19
}
20
20
21
21
public static String getClassName (JSONObject response ) {
22
+ if (response .isEmpty () || (response .containsKey (PROP_TYPE )
23
+ && response .get (PROP_TYPE ).toString ().equals (VALUE_ERROR ))) {
24
+ return RESPONSE_ERROR ;
25
+ } else if (response .containsKey (PROP_SECURE )) {
26
+ return RESPONSE_SECURE ;
27
+ } else return RESPONSE_SUCCESS ;
22
28
23
- if (response .containsKey (PROP_OBJECT_CHARGE ) && response .containsKey (PROP_CARD_NO ))
29
+ /* if(response.containsKey(PROP_OBJECT_CHARGE) && response.containsKey(PROP_CARD_NO))
24
30
return RESPONSE_SUCCESS;
25
31
else if(response.containsKey(PROP_SECURE))
26
32
return RESPONSE_SECURE;
27
- else return RESPONSE_ERROR ;
33
+ else return RESPONSE_ERROR;*/
28
34
}
29
35
}
You can’t perform that action at this time.
0 commit comments