Skip to content

Commit

Permalink
Merge pull request #141 from wangdaliu/remove-max-price
Browse files Browse the repository at this point in the history
chore: remove max amount limit
  • Loading branch information
sergiomarinocongosto authored Nov 25, 2024
2 parents f8de626 + 71442a5 commit c1eef2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions affirm/src/main/java/com/affirm/android/AffirmConstants.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package com.affirm.android;

import java.math.BigDecimal;

public final class AffirmConstants {

private AffirmConstants() {
}

static final String SDK_NAME = "Affirm";

static final BigDecimal maxPrice = BigDecimal.valueOf(17500.00);

static final String COUNTY_CODE_CAN = "CAN";

static final String COUNTY_CODE_USA = "USA";
Expand Down
6 changes: 0 additions & 6 deletions affirm/src/main/java/com/affirm/android/PromoRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ class PromoRequest implements AffirmRequest {

@Override
public void create() {
if (dollarAmount.compareTo(AffirmConstants.maxPrice) > 0) {
handleErrorResponse(new IllegalArgumentException(
"Affirm: data-amount is higher than the maximum ($17500)."));
return;
}

if (promoCall != null) {
promoCall.cancel();
}
Expand Down

0 comments on commit c1eef2c

Please sign in to comment.