After successful in-app purchase, receipt verification failed. I must need the receipt. How will i get the receipt??

After in app transaction success, i have requested for RECIEPT. but i got 'Receipt verification error'. In My application we must need the reciept for further proceed. How will i get the reciept?

Replies

After an IAP transaction there will be a call to updatedTransactions. At that point you can find the updated receipt by:

    NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
    NSData *receiptData=[NSData dataWithContentsOfURL:receiptURL];