Skip to content

Commit

Permalink
Merge pull request #135 from square/msilvis/new-min
Browse files Browse the repository at this point in the history
bump the minimum amount to be greater then a cent
  • Loading branch information
MikeSilvis authored Dec 6, 2022
2 parents 0bd3a0a + 437c80a commit 60e91a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ EXTERNAL SOURCES:
:path: "./"

SPEC CHECKSUMS:
SquarePointOfSaleSDK: 4cf96f9702f56171b3e9f8615acadf97879062f5
SquarePointOfSaleSDK: b4725738aca3762424077003dec44bd81c3985e0

PODFILE CHECKSUM: e781ee37c527dfe47abbeca21610d209a98372ff
PODFILE CHECKSUM: a967106528b2dfa02c1ae07b7a82d085fe2d4ba0

COCOAPODS: 1.9.3
COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion Sources/SCCAPIRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ @implementation SCCAPIRequest
#pragma mark - Class Methods

static NSString *__nullable APIClientID = nil;
static NSInteger minimumValidAmountInCents = 100;
static NSInteger minimumValidAmountInCents = 1;

+ (void)setApplicationID:(NSString *)applicationID;
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/SCCAPIRequestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class SCCAPIRequestTests: XCTestCase {
func test_requestWithCallbackURL_validatesAmount() {
let invalidAmounts:[SCCMoney] = [
try! SCCMoney(amountCents: -100, currencyCode: "USD"),
try! SCCMoney(amountCents: 99, currencyCode: "USD"),
try! SCCMoney(amountCents: 00, currencyCode: "USD"),
]
for invalidAmount in invalidAmounts {
do {
Expand Down

0 comments on commit 60e91a0

Please sign in to comment.