標籤:des style blog class tar ext width color get int art
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.
下一頁