|
@@ -1368,12 +1368,12 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
|
|
|
self.allAccessPackNew6months_lite.isSubscribed = YES;
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
} else if ([productIdentifier isEqualToString:self.allAccessPack12months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.allAccessPack12months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.allAccessPackPermanent_lite.productIdentifier]) {
|
|
@@ -1401,73 +1401,73 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
|
|
|
} else if ([productIdentifier isEqualToString:self.fourDevicesAllAccessPackNew6Months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.fourDevicesAllAccessPackNew6Months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.fourDevicesAllAccessPackNew12months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.fourDevicesAllAccessPackNew12months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.advancedAddDevicesAllAccessPack12months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.advancedAddDevicesAllAccessPack12months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.advancedAdd2DevicesAllAccessPack12months_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.advancedAdd2DevicesAllAccessPack12months_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.aiAllAccessPack12month_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.aiAllAccessPack12month_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.aiAllAccessPack12month_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.aiAllAccessPack12month_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.standardAddDevicesAllAccessPack12months_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.standardAddDevicesAllAccessPack12months_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.advancedAddDevicesAllAccessPack12months_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.advancedAddDevicesAllAccessPack12months_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.advancedAdd2DevicesAllAccessPack12months_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.advancedAdd2DevicesAllAccessPack12months_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.aiAllAccessPack1month_lite.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.aiAllAccessPack1month_lite.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.aiAllAccessPack1month_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.aiAllAccessPack1month_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.fourDevicesAllAccessPack12months_pro.productIdentifier]) {
|
|
|
[self loadReceipt:^(NSError *error) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:KMIAPSubscriptionLoadedNotification
|
|
|
- object:nil];
|
|
|
+ object:transaction];
|
|
|
}];
|
|
|
self.fourDevicesAllAccessPack12months_pro.isSubscribed = YES;
|
|
|
} else if ([productIdentifier isEqualToString:self.allAccessProduct.productIdentifier]) {
|
|
@@ -1513,7 +1513,6 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
|
|
|
NSLocalizedString(@"—》Due to Apple needs to confirm your purchase info, you may be required to sign in with your Apple ID. When you restore your purchase, make sure you use the same Apple ID that you previously used.", nil),
|
|
|
NSLocalizedString(@"—》Once you see the \"Restore Successfully\" message, you will be able to access the advanced features, including PDF to Office, PDF Watermark, Page Editor, and more.", nil)];
|
|
|
}
|
|
|
-
|
|
|
NSAlert *alert = [[[NSAlert alloc] init] autorelease];
|
|
|
[alert addButtonWithTitle:NSLocalizedString(@"OK", nil)];
|
|
|
[alert setAlertStyle:NSAlertStyleWarning];
|
|
@@ -1760,6 +1759,7 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
|
|
|
break;
|
|
|
case SKPaymentTransactionStateRestored:
|
|
|
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
|
|
|
+ [self productDidPurchased:transaction];
|
|
|
break;
|
|
|
}
|
|
|
}
|