Skip to content

Commit d9d10ed

Browse files
committed
change order of conditions
1 parent ec63795 commit d9d10ed

File tree

1 file changed

+2
-2
lines changed
  • raveandroid/src/main/java/com/flutterwave/raveandroid

1 file changed

+2
-2
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public static boolean wasTxSuccessful(RavePayInitializer ravePayInitializer, Str
5656
JSONObject flwMetaJsonObject = jsonData.getJSONObject("flwMeta");
5757
String chargeResponse = flwMetaJsonObject.getString("chargeResponse");
5858

59-
if (chargeResponse.equalsIgnoreCase("00") &&
59+
if (areAmountsSame(amount, txAmount) &&
60+
chargeResponse.equalsIgnoreCase("00") &&
6061
status.contains("success") &&
61-
areAmountsSame(amount, txAmount) &&
6262
currency.equalsIgnoreCase(txCurrency)) {
6363
Log.d("RAVE TX V", "true");
6464
return true;

0 commit comments

Comments
 (0)