Commit ca5b389 1 parent b22fdf2 commit ca5b389 Copy full SHA for ca5b389
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ @implementation InAppUtils
8
8
{
9
9
NSArray *products;
10
10
NSMutableDictionary *_callbacks;
11
+ SKProductsRequest *request;
11
12
}
12
13
13
14
- (instancetype )init
@@ -191,11 +192,10 @@ - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
191
192
RCT_EXPORT_METHOD (loadProducts:(NSArray *)productIdentifiers
192
193
callback:(RCTResponseSenderBlock)callback)
193
194
{
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 ];
199
199
}
200
200
201
201
RCT_EXPORT_METHOD (canMakePayments: (RCTResponseSenderBlock)callback)
You can’t perform that action at this time.
0 commit comments