title: transactionReceipt for in-app purchase is deprecated in iOS 7. What can I replace it with?
body: <p>In iOS 7, on the <a href="https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKPaymentTransaction_Class/Reference/Reference.html" rel="noreferrer">SKPaymentTransaction</a> class, the property <code>transactionReceipt</code>:</p>
  
  <pre><code>// Only valid if state is SKPaymentTransactionStatePurchased.
  
   @property(nonatomic, readonly) NSData *transactionReceipt
  </code></pre>
  
  <p>…is <a href="https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKPaymentTransaction_Class/index.html#//apple_ref/occ/instp/SKPaymentTransaction/transactionReceipt" rel="noreferrer">deprecated</a>. But, in my code, I created a InAppPurchase class, and in my method for controlling how is the method buying, I'm using the delegate method in my code and it's like:</p>
  
  <pre><code>- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
  
  for (SKPaymentTransaction *transaction in transactions) {
  
      switch (transaction.transactionState) {
  
          case SKPaymentTransactionStatePurchasing:
  
                         // code and bla bla bla    
                            [self initPurchase];  
                            NSLog(@"PASO 1");          
  
              break;
  
          case SKPaymentTransactionStatePurchased:
  
                        // this is successfully purchased!
                              purchased = TRUE;
                              NSLog(@"PASO 2");
                             [self isPurchased];
  
                   NSLog(@"purchased %s", purchased? "true" : "false");
  
                       //  and return the transaction data
  
    if ([delegate respondsToSelector:@selector(successfulPurchase:restored:identifier:receipt:)])
    [delegate successfulPurchase:self restored:NO identifier:transaction.payment.productIdentifier receipt:transaction.transactionReceipt];
  
                       // and more code bla bla bla 
  
              break;
  
          case SKPaymentTransactionStateRestored:
  
                      // and more code bla bla bla 
  
                            [self restorePurchase];
                            NSLog(@"PASO 3");
  
              break;
  
          case SKPaymentTransactionStateFailed:
  
                      // and more code bla bla bla 
  
                             [self failedNotification];
                             NSLog(@"PASO 4");
  
              break;
  
                      //------------------------------------------//
                      //               THANKS GUYS                //
                      //          GRETTINGS FROM BOLIVIA          //
                      //             ROCK ON!!!! n_n'             //
                      //------------------------------------------//
  
      }
     }
    }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nieKA.png" alt="enter image description here"></p>