Skip to content

Commit 3a86fac

Browse files
author
GAURAV GUPTA
authored
Merge pull request #1 from rustforgg/bugfix/IssueOfMissingHeaderFile
fixes the issue arising due to missing SquarePointOfSaleSDK.h
2 parents 065857d + c8965f6 commit 3a86fac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ios/RNSquarePos.m

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
#import "RNSquarePos.h"
3-
#import <SquarePointOfSaleSDK/SquarePointOfSaleSDK.h>
3+
//Following have been added as the umbrella header file of SquarePointOfSaleSDK.h is no more shipped from upstream SquarePointOfSaleSDK
4+
#import <SquarePointOfSaleSDK/SCCMoney.h>
5+
#import <SquarePointOfSaleSDK/SCCAPIRequest.h>
6+
#import <SquarePointOfSaleSDK/SCCAPIConnection.h>
47
#import <Foundation/Foundation.h>
58

69
@implementation RNSquarePos
@@ -21,7 +24,7 @@ @implementation RNSquarePos
2124
NSError *error;
2225
NSURL *const callbackURL = [NSURL URLWithString:callbackUrl];
2326
SCCMoney *const amount = [SCCMoney moneyWithAmountCents:_amount currencyCode:currency error:NULL];
24-
[SCCAPIRequest setClientID:applicationId];
27+
[SCCAPIRequest setApplicationID:applicationId]; //clientID property is deprecated. Instead per documentation applicationID property needs to be set.
2528

2629
// notes
2730
NSString *notes = nil;

0 commit comments

Comments
 (0)