When your purchase is successful, you will receive a transaction object. Is not it?
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
Iterate through each transaction object and use the following code:
if (transaction.downloads)
{
[[SKPaymentQueue defaultQueue] startDownloads:transaction.downloads];
}
Upon successful upload, you will receive a delegate call:
-(void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray *)downloads
{
for (SKDownload *download in downloads)
{
switch (download.downloadState) {
case SKDownloadStateActive:
NSLog(@"Download progress = %f and Download time: %f", download.progress, download.timeRemaining);
break;
case SKDownloadStateFinished:
NSLog(@"%@",download.contentURL);
break;
default:
break;
}
}
}
URL-, , ( ). .