Skip to content

Commit 6e2680a

Browse files
committed
- removed saved cards feature
1 parent b551fe7 commit 6e2680a

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@ public class RavePayInitializer {
2828
boolean withAccount = true;
2929
boolean withGHMobileMoney = false;
3030
int theme;
31-
boolean allowSaveCard;
3231
boolean staging = true;
3332

3433
public RavePayInitializer(String email, double amount, String publicKey,
3534
String encryptionKey, String txRef, String narration,
3635
String currency, String country, String fName,
3736
String lName, boolean withCard,
3837
boolean withAccount, boolean withMpesa, boolean withGHMobileMoney, int theme,
39-
boolean staging, boolean allowSaveCard, String meta, String subAccounts, String payment_plan) {
38+
boolean staging, String meta, String subAccounts, String payment_plan) {
4039
this.email = email;
4140
this.amount = amount;
4241
this.publicKey = publicKey;
@@ -53,7 +52,6 @@ public RavePayInitializer(String email, double amount, String publicKey,
5352
this.withCard = withCard;
5453
this.theme = theme;
5554
this.staging = staging;
56-
this.allowSaveCard = allowSaveCard;
5755
this.meta = meta;
5856
this.subAccounts = subAccounts;
5957
this.payment_plan = payment_plan;
@@ -82,14 +80,6 @@ public void setMeta(String meta) {
8280

8381
public void setSubAccount(String subAccounts){this.subAccounts=subAccounts;}
8482

85-
public boolean isAllowSaveCard() {
86-
return allowSaveCard;
87-
}
88-
89-
public void setAllowSaveCard(boolean allowSaveCard) {
90-
this.allowSaveCard = allowSaveCard;
91-
}
92-
9383
public boolean isStaging() {
9484
return staging;
9585
}

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ public class RavePayManager {
3535
boolean withGHMobileMoney = false;
3636
private int theme = R.style.DefaultTheme;
3737
boolean staging = true;
38-
boolean allowSaveCard = true;
39-
40-
public RavePayManager allowSaveCardFeature(boolean allowSaveCard) {
41-
this.allowSaveCard = allowSaveCard;
42-
return this;
43-
}
4438

4539
public RavePayManager onStagingEnv(boolean staging) {
4640
this.staging = staging;
@@ -157,6 +151,6 @@ public void initialize() {
157151
}
158152

159153
public RavePayInitializer createRavePayInitializer() {
160-
return new RavePayInitializer(email, amount, publicKey, encryptionKey, txRef, narration, currency, country, fName, lName, withCard, withAccount, withMpesa, withGHMobileMoney, theme, staging, allowSaveCard, meta, subAccounts, payment_plan);
154+
return new RavePayInitializer(email, amount, publicKey, encryptionKey, txRef, narration, currency, country, fName, lName, withCard, withAccount, withMpesa, withGHMobileMoney, theme, staging, meta, subAccounts, payment_plan);
161155
}
162156
}

0 commit comments

Comments
 (0)