iOS Restore in App purchases with receipts

前端 未结 1 1243
不知归路
不知归路 2020-12-30 13:33

The following extract is from the Apple documents how to restore in App purchases in iOS 7. They say that you can store the receipts and find out later what they user alread

相关标签:
1条回答
  • 2020-12-30 14:09

    1) Is there the one app receipt or are there many single receipt?

    There is a single app receipt. Before that, Apple provided receipts for each transaction. Those receipts still exist but are deprecated.

    2) Does it make more sense to store these receipts instead of just storing directly which features the user has already bought

    Not anymore (for iOS 7 apps).

    3) How can I examine the receipt that I get from that refresh? All my tries to parse it failed so far.

    This is a complex issue. I suggest reading this unapologetically long answer: https://stackoverflow.com/a/20039394/143378.

    4) Is there any framework that has a lot of features (saving receipts / bought products on iCloud, making purchases easier, handling downloads, handling all kinds of connection problems, etc.) already? Maybe even with remote server support (and validation).

    There are 3 that I'm aware of:

    • CargoBay
    • RMStore
    • MKStoreKit

    To date, MKStoreKit appears abandoned and CargoBay doesn't support app receipts. CargoBay has features that RMStore hasn't, and viceversa. I'd check them both and see which one fits your requirements better.

    In any case, I recommend reading the StoreKit documentation before using any libraries. The libraries provide code, not understanding.

    Disclaimer: I developed RMStore.

    0 讨论(0)
提交回复
热议问题