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.
内置購買使用Store Kit 架構在應用程式裡内置一個商店。該架構把你的應用程式的行為連接配接到應用商店來安全地處理使用者的支付,促使他們授權支付。 然後架構給你的應用程式發送通知,該應用程式提供了使用者購買的商品。使用内置購買可以為額外的功能和内容提供支付。

For example, using In-App Purchase, you can implement the following scenarios:
比如,使用内置購買,你可以實作以下内容:
-
A basic version of your app with additional premium features
一個帶有額外進階功能的應用程式的基礎版本。
-
A magazine app that lets users purchase and download new issues
一個可以讓使用者購買和下載下傳新刊的雜志應用。
-
A game that offers new levels to explore
一個提供新關卡讓使用者攻克的遊戲。
-
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
一、在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.
了解内置購買支援哪些産品和行為讓你最大化使用該技術來設計應用程式和内置商店。
Relevant Chapter: “Designing Your App’s Products”
相關章節:“Designing Your App’s Products”
Your App Interacts with the App Store to Sell Products
二、應用程式跟應用商店互動來出售産品
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.”中有完整清單來幫助你計劃你的開發,你可以在開始前先閱讀完整的清單。
Relevant Chapters: “Retrieving Product Information,” “Requesting Payment,” “Delivering Products”
相關章節: “Retrieving Product Information,” “Requesting Payment,” “Delivering Products”
Subscriptions Require Additional Application Logic
三、訂閱需要更多應用邏輯
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.
提供訂閱的應用程式需要随時監控使用者何時有一個活動訂閱,響應到期和續期,然後決定使用者通路什麼内容。
Relevant Chapter: “Working with Subscriptions”
相關章節:“Working with Subscriptions”
Users Can Restore Purchases
四、使用者可以恢複購買
Users can restore products that they previously purchased—for example, to bring content they’ve already paid for onto their new phone.
使用者可以恢複它們先前已經購買的産品--比如,可以把購買産品給新的手機使用。
Relevant Chapter: “Restoring Purchased Products”
相關章節:“Restoring Purchased Products”
Apps and Products Are Submitted for Review
五、應用程式和産品需要送出稽核
When you’re done developing and testing, you submit your app and your In-App Purchase products for review.
當你完成開發和測試後,你需要送出你的應用程式和内置購買産品以供稽核。
Relevant Chapter: “Preparing for App Review”
相關章節:“Preparing for App Review”
See Also
參見
-
In-App Purchase Configuration Guide for iTunes Connect describes how to create and configure your app’s products in iTunes Connect.
描述了如何在iTunes Connect 裡建立和配置應用程式的産品。
- Receipt Validation Programming Guide describes how to work with receipts, in particular with the record of successful in-app purchases.
下一頁
轉載于:https://www.cnblogs.com/patientAndPersist/p/3699294.html