Skip to content

Commit

Permalink
Fixed ios foreignTransactionID
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlevy0 committed Jan 7, 2019
1 parent fcedb29 commit 1b3d499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNSumUp.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ - (NSDictionary *)constantsToExport
NSDecimalNumber *total = [NSDecimalNumber decimalNumberWithString:[RCTConvert NSString:request[@"totalAmount"]]];
NSString *title = [RCTConvert NSString:request[@"title"]];
NSString *currencyCode = [RCTConvert NSString:request[@"currencyCode"]];
NSString *foreignTransactionID = [RCTConvert NSString:[request objectForKeyNotNull:@"foreignTransactionId"]];
NSString *foreignTransactionID = [RCTConvert NSString:request[@"foreignTransactionId"]];
NSUInteger paymentOption = [RCTConvert SMPPaymentOptions:request[@"paymentOption"]];
NSUInteger skipScreen = [RCTConvert SMPSkipScreenOptions:@"1"];

Expand All @@ -133,7 +133,7 @@ - (NSDictionary *)constantsToExport
currencyCode:currencyCode
paymentOptions:paymentOption];
checkoutRequest.skipScreenOptions = skipScreen;
if (foreignTransactionID != [NSNull null]) {
if (foreignTransactionID != nil) {
[checkoutRequest setForeignTransactionID:foreignTransactionID];
}

Expand Down

0 comments on commit 1b3d499

Please sign in to comment.