File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ @implementation InAppUtils
88{
99 NSArray *products;
1010 NSMutableDictionary *_callbacks;
11+ SKProductsRequest *request;
1112}
1213
1314- (instancetype )init
@@ -191,11 +192,10 @@ - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
191192RCT_EXPORT_METHOD (loadProducts:(NSArray *)productIdentifiers
192193 callback:(RCTResponseSenderBlock)callback)
193194{
194- SKProductsRequest *productsRequest = [[SKProductsRequest alloc ]
195- initWithProductIdentifiers: [NSSet setWithArray: productIdentifiers]];
196- productsRequest.delegate = self;
197- _callbacks[RCTKeyForInstance (productsRequest)] = callback;
198- [productsRequest start ];
195+ request = [[SKProductsRequest alloc ] initWithProductIdentifiers: [NSSet setWithArray: productIdentifiers]];
196+ request.delegate = self;
197+ _callbacks[RCTKeyForInstance (request)] = callback;
198+ [request start ];
199199}
200200
201201RCT_EXPORT_METHOD (canMakePayments: (RCTResponseSenderBlock)callback)
You can’t perform that action at this time.
0 commit comments