Can I get receipt from Apple serve

I have one question which is bother me a lots time . Can i get receipt from Apple serve? please give me a hand, thank you a lot!

Replies

You cannot get a receipt from the apple server. You get the receipt from within your app by accessing this file:


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

Now, i want to verify receipt in my own server, not client, and develop server-side verification first, and then develop ios.In this case, how could I get a receipt data to test the App Store API: verifyReceipt?