title: Implementing in app purchase and its restoration in iphone
body: <p>I have implemented in app purchase in one of my application using MKStoreManager.Now got a new guideline from apple that if you are doing in app purchase,you  have to give the user,the option for restoring the already purchased application.So i have done like this.On the 'restore' button click,this method is called.</p>
  
  <pre><code>- (void) checkPurchasedItems
  {
     [[SKPaymentQueue defaultQueue] addTransactionObserver:self]; 
      [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
  }
  </code></pre>
  
  <p>and from here,this method is fired </p>
  
  <pre><code>- (void) paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
      {
       NSMutableArray* purchasableObjects  = [[NSMutableArray alloc] init];
  
          NSLog(@"received restored transactions: %i", queue.transactions.count);
          for (SKPaymentTransaction *transaction in queue.transactions)
          {
              NSString *productID = transaction.payment.productIdentifier;
              [purchasableObjects addObject:productID];
          }
  
      }
  </code></pre>
  
  <p>But now i have a doubt that how can i check this restoration is working or not.Can anyone guide me.thanks in advance.</p>