In-App Purchase Programming Guide----(一) ---- About In-App Purchase

About In-App Purchase

In-App Purchase allows you to embed a store inside your app using the Store Kit framework. This framework connects to the App Store on your app’s behalf to securely process payments from users, prompting them to authorize payment. The framework then notifies your app, which provides the purchased items to users. Use In-App Purchase to collect payment for additional features and content.html

內置購買使用Store Kit 框架在應用程序裏內置一個商店。該框架把你的應用程序的行爲鏈接到應用商店來安全地處理用戶的支付,促使他們受權支付。 而後框架給你的應用程序發送通知,該應用程序提供了用戶購買的商品。使用內置購買能夠爲額外的功能和內容提供支付。ios

Art/remote_store_fetch_2x.png

For example, using In-App Purchase, you can implement the following scenarios:安全

好比,使用內置購買,你能夠實現如下內容:app

  • A basic version of your app with additional premium features框架

    一個帶有額外高級功能的應用程序的基礎版本。ide

  • A magazine app that lets users purchase and download new issues測試

    一個可讓用戶購買和下載新刊的雜誌應用。fetch

  • A game that offers new levels to exploreui

    一個提供新關卡讓用戶攻克的遊戲。this

  • An online game that allows players to purchase virtual property

    一個容許玩家購買虛擬資產在線遊戲。

At a Glance

概論

At a high level, the interactions between the user, your app, and the App Store during the In-App Purchase process take place in three stages, as shown in Figure I-1. First, the user navigates to your app’s store and your app displays its products. Second, the user selects a product to buy and the app requests payment from the App Store. Third, the App Store processes the payment and your app delivers the purchased product.

從高層次來講,內置購買過程處理期間,用戶,應用程序和應用商店之間的交互發生在三個階段,如圖I-1。首先,用戶導航到你的應用程序商店,你的應用程序顯示其產品。 其次,用戶選擇一個產品購買,應用程序從應用商店請求支付。 最後,應用商店處理該支付,你的應用程序傳遞被購產品。

Figure I-1  Stages of the purchase process

圖I-1 購買過程的階段

You Create and Configure Products in iTunes Connect

1、在iTunes Connect裏建立和配置產品

Understanding what kinds of products and behaviors are supported by In-App Purchase lets you design your app and in-app store to make the best use of this technology.

理解內置購買支持哪些產品和行爲讓你最大化使用該技術來設計應用程序和內置商店。

Your App Interacts with the App Store to Sell Products

2、應用程序跟應用商店交互來出售產品

All apps that use In-App Purchase need to implement the core functionality described in these chapters to let users make purchases and then deliver the purchased products.

全部使用內置購買的應用程序都須要實現這些章節中描述的內核功能,讓用戶能夠購買而後傳遞已購的產品。

These development tasks need to be done in order. The relevant chapters introduce them in the order you implement them, and they’re listed in full in「Implementation Checklist.」 To help plan your development, you may want to read the full checklist before you begin.

這些開發任務須要按順序完成。 相關章節按照你實現它們的順序介紹,它們在「Implementation Checklist.」中有完整列表來幫助你計劃你的開發,你能夠在開始前先閱讀完整的清單。

Subscriptions Require Additional Application Logic

3、訂閱須要更多應用邏輯

Apps that offer subscriptions need to keep track of when the user has an active subscription, respond to expiration and renewal, and determine what content the user has access to.

提供訂閱的應用程序須要隨時監控用戶什麼時候有一個活動訂閱,響應到期和續期,而後決定用戶訪問什麼內容。

Users Can Restore Purchases

4、用戶能夠恢復購買

Users can restore products that they previously purchased—for example, to bring content they’ve already paid for onto their new phone.

用戶能夠恢復它們先前已經購買的產品--好比,能夠把購買產品給新的手機使用。

Apps and Products Are Submitted for Review

5、應用程序和產品須要提交審覈

When you’re done developing and testing, you submit your app and your In-App Purchase products for review.

當你完成開發和測試後,你須要提交你的應用程序和內置購買產品以供審覈。

See Also

參見

相關文章
相關標籤/搜索