The Lifecycle of Purchases

The lifecycle of a StoreKit purchase is:

  1. Obtain valid product identifiers and present a UI for the user to choose one.
  2. If user choose a product, you then submit that product for StoreKit for purchase.
  3. The purchase then moves through a few phases in the StoreKit transaction queue, which you attach code to monitor, until either a purchase is confirmed, or cancelled (or deferred).
  4. If a product/subscription has been purchased, then you move to verification step.
  5. You then load the StoreKit receipt and verify, either locally or with a server.
  6. Once a purchase is confirmed, you then finish the transaction (if your purchase is not consumable, in which case you make sure the application saves whatever it needs to update in relation to the transient purchase, then you complete the transaction).
Did this answer your question?