I have created an app which allows users to buy non-consumable content. The retrieving-ids-payment-process works like a charm but i wish too, when the transaction is completed and the request is made to download the content, I would like to save who has downloaded this content. In my observer i have implemented method:
- (void)completeTransaction: (SKPaymentTransaction *)transaction{
    NSLog(@"completeTransaction");
    [[ShopHandler sharedManager] provideContent:transaction.payment.productIdentifier]; 
    [[SKPaymentQueue defaultQueue] finishTransaction: transaction]; 
}
In my ShopHandler i have the provideContent method
-(void) provideContent: (NSString*) productIdentifier {
    Here i want to retrieve the user that has bought this product and
    then perform a request to my server
    e.g http://www.tesserver.com/download?id=com.my.id.test&itunesid=test@itunes.com
 }
So how do i retrieve that itunes id?
Edit:
Apple states in their Introducing Store Kit video in the iPhone Dev Center one we should:
"Keep a copy of the TransactionID along with the Customer Information in your server in the cloud. This way if the customer mistakenly deletes your application, 开发者_StackOverflow社区you have a mechanism for recovery. You can check your server on first launch of your app for a record of the purchases for a given customer and bring that app back to its state before it was deleted. Believe me your customers will be thankful!"
So what do they mean by this?
I don't believe you can. This is a security feature, and furthermore as a user I don't want you to know my iTunes ID.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论