Skip to content

Commit 51eef2e

Browse files
committed
[--] Stop checking amount before sending to Paystack
1 parent 1cd9ad8 commit 51eef2e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

paystack/src/main/java/co/paystack/android/Paystack.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ public void chargeCard(Activity activity, Charge charge, String publicKey, Trans
119119
if (charge == null) {
120120
throw new RuntimeException("Required parameter: Charge cannot be null");
121121
}
122-
123-
if (charge.getAmount() < 5000) {
124-
throw new RuntimeException("Required parameter: Amount cannot be less than 5000 (50 naira)");
125-
}
126-
122+
127123
if (charge.getCard() == null) {
128124
throw new RuntimeException("Required parameter: Card cannot be null");
129125
}

0 commit comments

Comments
 (0)