Skip to content

Commit 537556b

Browse files
Merge pull request #281 from FredDominant/ft/update-pwbt-bank-list
update banks list for pay with account
2 parents 064da8d + db08fd0 commit 537556b

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

ChargeVerificationUtils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This module helps you handle charge verification when not using the default drop
1313
**Step 2.** Add the dependency for the utils library
1414

1515
dependencies {
16-
implementation 'com.github.Flutterwave.rave-android:rave_utils:2.1.37'
16+
implementation 'com.github.Flutterwave.rave-android:rave_utils:2.1.38'
1717
}
1818

1919
**Step 2.** In your payment activity or fragment, create an instance of the `RaveVerificationUtils` class

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ The payment methods currently supported are Cards, USSD, Mpesa, GH Mobile Money,
3535
If you want to use the default Drop In UI, add the `rave-android` module dependency
3636
```groovy
3737
dependencies {
38-
implementation 'com.github.flutterwave.rave-android:rave_android:2.1.37'
38+
implementation 'com.github.flutterwave.rave-android:rave_android:2.1.38'
3939
}
4040
```
4141

4242
if you are not interested in our default UI and you want to use yours and only want to interact with our core sdk, use the `rave_presentation` module
4343

4444
```groovy
4545
dependencies {
46-
implementation 'com.github.Flutterwave.rave-android:rave_presentation:2.1.37'
46+
implementation 'com.github.Flutterwave.rave-android:rave_presentation:2.1.38'
4747
}
4848
```
4949
**Step 3.** Add the `INTERNET` permission to your android manifest

rave_android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion 15
1010
targetSdkVersion 30
1111
versionCode 1
12-
versionName "2.1.37"
12+
versionName "2.1.38"
1313

1414
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515

rave_android/build/generated/source/buildConfig/debug/com/flutterwave/raveandroid/BuildConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ public final class BuildConfig {
99
public static final String BUILD_TYPE = "debug";
1010
public static final String FLAVOR = "";
1111
public static final int VERSION_CODE = 1;
12-
public static final String VERSION_NAME = "2.1.34";
12+
public static final String VERSION_NAME = "2.1.37";
1313
}

rave_presentation/src/main/java/com/flutterwave/raveandroid/rave_presentation/account/AccountHandler.java

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.util.Log;
44

5+
import com.flutterwave.raveandroid.rave_core.models.Bank;
56
import com.flutterwave.raveandroid.rave_java_commons.Payload;
67
import com.flutterwave.raveandroid.rave_logger.Event;
78
import com.flutterwave.raveandroid.rave_logger.EventLogger;
@@ -23,6 +24,8 @@
2324
import com.flutterwave.raveandroid.rave_remote.responses.FeeCheckResponse;
2425
import com.flutterwave.raveandroid.rave_remote.responses.RequeryResponse;
2526

27+
import java.util.List;
28+
2629
import javax.inject.Inject;
2730

2831
import static com.flutterwave.raveandroid.rave_java_commons.RaveConstants.RAVEPAY;
@@ -59,22 +62,22 @@ public AccountHandler(AccountContract.AccountInteractor mAccountInteractor) {
5962
@Override
6063
public void getBanksList() {
6164

62-
mAccountInteractor.onBanksListRetrieved(accountBanksList);
63-
// mAccountInteractor.showProgressIndicator(true);
64-
//
65-
// networkRequest.getBanks(new ResultCallback<List<Bank>>() {
66-
// @Override
67-
// public void onSuccess(List<Bank> banks) {
68-
// mAccountInteractor.showProgressIndicator(false);
69-
// mAccountInteractor.onBanksListRetrieved(banks);
70-
// }
71-
//
72-
// @Override
73-
// public void onError(String message) {
74-
// mAccountInteractor.showProgressIndicator(false);
75-
// mAccountInteractor.onGetBanksRequestFailed("An error occurred while retrieving banks");
76-
// }
77-
// });
65+
// mAccountInteractor.onBanksListRetrieved(accountBanksList);
66+
mAccountInteractor.showProgressIndicator(true);
67+
68+
networkRequest.getBanks(new ResultCallback<List<Bank>>() {
69+
@Override
70+
public void onSuccess(List<Bank> banks) {
71+
mAccountInteractor.showProgressIndicator(false);
72+
mAccountInteractor.onBanksListRetrieved(banks);
73+
}
74+
75+
@Override
76+
public void onError(String message) {
77+
mAccountInteractor.showProgressIndicator(false);
78+
mAccountInteractor.onGetBanksRequestFailed("An error occurred while retrieving banks");
79+
}
80+
});
7881

7982
}
8083

0 commit comments

Comments
 (0)