鍍金池/ 教程/ iOS/ 介紹
恢復(fù)購(gòu)買記錄
內(nèi)置購(gòu)買
介紹
準(zhǔn)備應(yīng)用程序?qū)彶?/span>
創(chuàng)建和配置產(chǎn)品
獲取產(chǎn)品信息
支付請(qǐng)求
使用訂閱
如何測(cè)試應(yīng)用程序內(nèi)置購(gòu)買
產(chǎn)品交付

介紹

In-App Purchase is an Apple technology that allows your users to purchase content and services from within your app. You set up In-App Purchase products through iTunes Connect, a suite of web-based tools. You implement In-App Purchase in your app using the Store Kit framework.

內(nèi)置購(gòu)買是一種蘋(píng)果技術(shù),它允許用戶從你的應(yīng)用內(nèi)部購(gòu)買內(nèi)容和服務(wù)。你可以通過(guò)一套基于網(wǎng)絡(luò)的工具在iTunes Connect設(shè)置內(nèi)置購(gòu)買。 你使用商店Kit框架在應(yīng)用中實(shí)現(xiàn)內(nèi)置購(gòu)買。

For example, you can use In-App Purchase to implement any of the following scenarios:

舉個(gè)例子,你可以使用內(nèi)置購(gòu)買來(lái)實(shí)現(xiàn)以下任何場(chǎng)景:

  • A basic version of your app with additional premium features

帶有額外高級(jí)功能的應(yīng)用程序的一個(gè)基本版本。

  • A book reader app that allows the user to purchase and download new books

一個(gè)允許用戶購(gòu)買和下載新書(shū)的閱讀器應(yīng)用。

-A game that offers new environments (levels) to explore

一個(gè)給用戶提供更多關(guān)卡的游戲。

  • A game that allows players to purchase virtual property

一個(gè)允許用戶購(gòu)買虛擬財(cái)產(chǎn)的游戲。

  • An app that provides access to a turn-by-turn map service

一個(gè)提供全方位地圖服務(wù)的應(yīng)用。

  • A subscription to a digital magazine or newsletter

一個(gè)數(shù)字雜志或通訊的訂閱應(yīng)用。

After you’ve designed one or more products to make available in your app, you’re ready to add In-App Purchase configuration information in iTunes Connect.

當(dāng)你在你的應(yīng)用中設(shè)計(jì)好一個(gè)或多個(gè)產(chǎn)品時(shí),你就以及準(zhǔn)備好在iTunes Connect中添加內(nèi)置購(gòu)買配置信息了。 http://wiki.jikexueyuan.com/project/in-app-purchase/images/17.png" alt="" />

If you aren’t already familiar with In-App Purchase, read Getting Started with In-App Purchase on iOS and OS X and Adding In-App Purchase to your iOS and Mac Applications. If you aren’t already familiar with iTunes Connect, read iTunes Connect Developer Guide.

如果你對(duì)內(nèi)置購(gòu)買還不熟悉,請(qǐng)看Getting Started with In-App Purchase on iOS and OS X Adding In-App Purchase to your iOS and Mac Applications. 如果你不熟悉iTunes Connect,請(qǐng)看 iTunes Connect Developer Guide.

At a Glance

一、概述

Use iTunes Connect to add, set up testing for, submit, and manage your In-App Purchase product configurations.

使用iTunes Connect 來(lái)添加,配置測(cè)試,提交,以及管理你的內(nèi)置購(gòu)買產(chǎn)品配置。

Configure Your In-App Purchase Products

1、配置你的內(nèi)置購(gòu)買產(chǎn)品

After you’ve created an iTunes Connect record for your app, you can configure the In-App Purchase products that you want to make available through your app.

當(dāng)你為你的應(yīng)用創(chuàng)建了一個(gè)iTunes Connect記錄后,你可以配置內(nèi)置購(gòu)買產(chǎn)品,這些產(chǎn)品將在你的應(yīng)用中出售。

Related Chapters: “Creating In-App Purchase Products,” “Displaying Products in More Than One Language”

相關(guān)章節(jié):“Creating In-App Purchase Products,” “Displaying Products in More Than One Language”

Test Your In-App Purchase Products

2.測(cè)試你的內(nèi)置購(gòu)買產(chǎn)品

Test the In-App Purchase products you’ve configured to make sure they appear in your app’s store and to make sure that financial transactions work properly.

測(cè)試你已經(jīng)配置的內(nèi)置購(gòu)買產(chǎn)品,確保它們出現(xiàn)在你的應(yīng)用商店,以及確保順利地完成財(cái)務(wù)交易工作。

Related Chapters: “Testing In-App Purchase Products”

相關(guān)章節(jié):“Testing In-App Purchase Products”

Submit Your In-App Purchase Products for Review

3.上傳你的內(nèi)置購(gòu)買產(chǎn)品以供審核

After you’ve included all the information for a product and tested to make sure it appears in your app’s store, you are ready to submit the product for review and to make it available on the store.

當(dāng)你包含了產(chǎn)品的所有信息之后,測(cè)試它以確保它能出現(xiàn)在你的應(yīng)用商店,這樣你就可以準(zhǔn)備發(fā)布該產(chǎn)品以供審核,并讓它能在商店里出售。

Related Chapters: “Submitting In-App Purchase Products”

相關(guān)章節(jié): “Submitting In-App Purchase Products”

Manage the In-App Purchase Products Available in Your App 4.管理應(yīng)用程序中的內(nèi)置購(gòu)買產(chǎn)品

After an In-App Purchase product is approved and ready for sale, you can continue to manage its display, pricing, and availability on the store.

當(dāng)內(nèi)置購(gòu)買產(chǎn)品審核通過(guò)并準(zhǔn)備好出售后,你可以繼續(xù)管理它的顯示,價(jià)格以及它的可用性。

Related Chapters: “Working with Your Product’s Status,” “Working with Your Product’s Metadata”

相關(guān)章節(jié): “Working with Your Product’s Status,” “Working with Your Product’s Metadata”

Prerequisites

二、前提條件

To configure In-App Purchase content in iTunes Connect, you need access to:

要想在iTunes Connect里配置內(nèi)置購(gòu)買內(nèi)容,你需要經(jīng)過(guò):

  • The latest iOS or Mac Developer Program License Agreement

最新的iOS或Mac開(kāi)發(fā)者計(jì)劃許可協(xié)議

See Legal Agreements in Your Account in Member Center.

查看 Member Center賬號(hào)中的法律協(xié)議。

  • The latest paid app contract, either iOS or Mac

最新支付的iOS或Mac應(yīng)用合同

Open the Contracts, Tax, and Banking module in iTunes Connect, as described in “Managing Contracts, Taxes, and Banking” in iTunes Connect Developer Guide.

打開(kāi)iTunes Connect中的 Contracts, Tax, and Banking單元,請(qǐng)看 iTunes Connect Developer Guide中的 “Managing Contracts, Taxes, and Banking”

  • An iTunes Connect user account with an Admin or Technical role

一個(gè)iTunes Connect用戶賬號(hào),它必須是管理員或者技術(shù)人員角色。

See “Setting Up User Accounts” in iTunes Connect Developer Guide.

查看 iTunes Connect Developer Guide 的“Setting Up User Accounts”

An iTunes Connect record for your app

你的應(yīng)用程序的一個(gè)iTunes Connect 記錄。

See “Creating an iTunes Connect Record for an App” in iTunes Connect Developer Guide.

查看 iTunes Connect Developer Guide的“Creating an iTunes Connect Record for an App”。

See Also

三、參見(jiàn)

As you include In-App Purchase products in your apps, you may want to refer to these additional Apple resources, which describe the associated business and development guidelines and requirements:

當(dāng)你的應(yīng)用程序需要添加內(nèi)置購(gòu)買產(chǎn)品時(shí),你或許想要引用這些額外的蘋(píng)果資源,它們描述了相關(guān)的業(yè)務(wù),開(kāi)發(fā)指南和需求:

  • Getting Started with In-App Purchase on iOS and OS X provides an overview of In-App Purchase marketing strategies and business requirements.

Getting Started with In-App Purchase on iOS and OS X 提供了一個(gè)內(nèi)置購(gòu)買市場(chǎng)戰(zhàn)略和業(yè)務(wù)需求的概述。

  • “Adding Capabilities” in App Distribution Guide explains how to use Xcode to enable Apple services such as In-App Purchase.

App Distribution Guide中的 “Adding Capabilities”解釋了如何使用Xcode開(kāi)啟各種蘋(píng)果服務(wù),比如內(nèi)置購(gòu)買。

In-App Purchase Programming Guide 描述了用Store Kit框架在你的應(yīng)用程序中嵌入一個(gè)商店。

In-App Purchase for Developers lists the references available to support you through development of your app and In-App Purchase content.

In-App Purchase for Developers 羅列了支持完成你的整個(gè)應(yīng)用開(kāi)發(fā)和內(nèi)置購(gòu)買內(nèi)容的各種引用。

  • iTunes Connect Developer Guide contains general information about creating an iTunes Connect record for your app to submit it to the App Store or the Mac App Store. In addition, this document describes other steps you’ll need to complete to market your app, including setting up your organization’s contracts and banking information and submitting app metadata, including artwork and localization information. It continues with information on how to monitor your app’s success.

iTunes Connect Developer Guide 包含了各種基本信息,包括為即將發(fā)送到應(yīng)用商店或Mac 應(yīng)用商店的應(yīng)用程序創(chuàng)建一個(gè)iTunes Connect 記錄。另外,本文描述了完成發(fā)布你的應(yīng)用程序需要的其它步驟,包括建立你的組織合同,銀行信息以及發(fā)布應(yīng)用程序元數(shù)據(jù)(metadata),包括artwork和本地化信息。它就如何監(jiān)控你的應(yīng)用程序的成功持續(xù)收集各種信息。

Throughout this document, look for links to additional documents on more specific topics throughout this document.

通過(guò)本文,查找并鏈接到更具體的主題。