Skip to content

Commit eeb9b8d

Browse files
committed
Update constructor for SCCAPIRequest
1 parent ae75f06 commit eeb9b8d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

ios/RNSquarePos.m

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,19 @@ @implementation RNSquarePos
7474
autoReturn = [options objectForKey:@"returnAutomaticallyAfterPayment"];
7575
}
7676

77-
SCCAPIRequest *request = [SCCAPIRequest requestWithCallbackURL:callbackURL
78-
amount:amount
79-
userInfoString:nil
77+
SCCAPIRequest *request = [SCCAPIRequest
78+
requestWithCallbackURL:callbackURL
79+
amount:amount
80+
userInfoString:nil
8081
locationID:locationId
81-
notes:notes
82-
customerID:nil
83-
supportedTenderTypes:tenderTypes
84-
clearsDefaultFees:NO
85-
returnAutomaticallyAfterPayment:autoReturn
86-
error:&error];
82+
notes:notes
83+
customerID:nil
84+
supportedTenderTypes:tenderTypes
85+
clearsDefaultFees:NO
86+
returnsAutomaticallyAfterPayment:autoReturn
87+
disablesKeyedInCardEntry:NO
88+
skipsReceipt:NO
89+
error:&error];
8790
[SCCAPIConnection performRequest:request error:&error];
8891
if (error != nil) {
8992
onError(@[[NSNumber numberWithInt:[error code]], [error localizedDescription]]);

0 commit comments

Comments
 (0)