Skip to content

Commit f05244e

Browse files
committed
convert amounts to double before comparing
1 parent 37487e5 commit f05244e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static boolean wasTxSuccessful(RavePayInitializer ravePayInitializer, Str
5858

5959
if (chargeResponse.equalsIgnoreCase("00") &&
6060
status.contains("success") &&
61-
amount.equalsIgnoreCase(txAmount) &&
61+
Double.parseDouble(amount) == Double.parseDouble(txAmount) &&
6262
currency.equalsIgnoreCase(txCurrency)) {
6363
Log.d("RAVE TX V", "true");
6464
return true;

0 commit comments

Comments
 (0)