From b4d9f692958dd97ac4356a7f4708f50fb9d9d209 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 17 Apr 2015 11:33:02 +0200 Subject: [PATCH] continue --- Classes/InAppProductsManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/InAppProductsManager.m b/Classes/InAppProductsManager.m index 8ec9adcf4..9fc3fc8a6 100644 --- a/Classes/InAppProductsManager.m +++ b/Classes/InAppProductsManager.m @@ -39,7 +39,7 @@ NSString *const kLinphoneIAPurchaseNotification = @"LinphoneIAProductsNotificati return; } //TODO: move this list elsewhere - NSArray * list = [[[NSArray alloc] initWithArray:@[@"test.tunnel"]] autorelease]; + NSArray * list = [[[NSArray alloc] initWithArray:@[@"test.auto_renew_7days", @"test.non_renew", @"test.one_time", @"test.auto_renew_1month_withfree"]] autorelease]; SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithArray:list]]; @@ -86,6 +86,8 @@ NSString *const kLinphoneIAPurchaseNotification = @"LinphoneIAProductsNotificati } -(void)restore { + LOGI(@"Restoring user purchases..."); + if (! [SKPaymentQueue canMakePayments]) { LOGF(@"Not allowed to do in app purchase!!!"); } _productsRestored = [[NSMutableArray alloc] initWithCapacity:0]; [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; }