diff --git a/ios/RNSumUp.m b/ios/RNSumUp.m index 6834d98..8bdcd6f 100644 --- a/ios/RNSumUp.m +++ b/ios/RNSumUp.m @@ -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"]; @@ -133,7 +133,7 @@ - (NSDictionary *)constantsToExport currencyCode:currencyCode paymentOptions:paymentOption]; checkoutRequest.skipScreenOptions = skipScreen; - if (foreignTransactionID != [NSNull null]) { + if (foreignTransactionID != nil) { [checkoutRequest setForeignTransactionID:foreignTransactionID]; }