【iOS】蘋果內(nèi)購調(diào)研

參考文章

什么時候使用蘋果內(nèi)購

微信和支付寶在國內(nèi)已經(jīng)有大量用戶,用起來也很方便,估計開發(fā)者也不愿意為此再折騰蘋果內(nèi)購,所以,界定什么時候必須用蘋果內(nèi)購是必要的.

官方文檔Understanding What You Can Sell Using In-App Purchase中,對于什么能賣,什么不能賣,做了指導.

You can use In-App Purchase to sell content, app functionality, and services.

*   Content. Deliver digital content or assets, such as magazines, photos, and artwork. Content can also be used by the app itself—for example, additional characters and levels in a game, filters in a camera app, and stationery in a word processor. 

*   App functionality. Unlock behavior and expand features you’ve already delivered. Examples include a free game that offers multiplayer mode as an in-app purchase and a free weather app that lets users make a one-time purchase to remove ads.  
  
*   Services. Have users pay for one-time services such as voice transcription and for ongoing services such as access to a collection of data.  

You can’t use In-App Purchase to sell real-world goods and services or to sell unsuitable content.

*   Real-world goods and services. You must deliver a digital good or service within your app when using In-App Purchase. Use a different payment mechanism to let your users buy real-world goods and services in your app, such as a credit card or payment service.  

*   Unsuitable content. Don’t use In-App Purchase to sell content that the isn’t allowed by the App Review Guidelines—for example, pornography, hate speech, or defamation.  

在App Store上架指導中,給出了關于payment更具體的說明:

3.1 Payments  

3.1.1 In-App Purchase: If you want to unlock features or functionality within your app, (by way of example: subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use in-app purchase. Apps may not include buttons, external links, or other calls to action that direct customers to purchasing mechanisms other than IAP. Any credits or in-game currencies purchased via IAP must be consumed within the app and may not expire, and you should make sure you have a restore mechanism for any restorable in-app purchases. Please remember to assign the correct purchasability type or your app will be rejected. Apps should not directly or indirectly enable gifting of IAP content, features, or consumable items to others. Apps distributed via the Mac App Store may host plug-ins or extensions that are enabled with mechanisms other than the App Store.  

3.1.2 Subscriptions: Auto-renewing subscriptions should only be offered using in-app purchase and may only be used for periodicals (e.g. newspapers, magazines), business apps (e.g. enterprise, productivity, professional creative, cloud storage), media apps (e.g. video, audio, voice, photo sharing), and other approved services (e.g. dating, dieting, weather). These subscriptions must last a minimum of 7 days and be accessible from all of the user’s devices where the app is available. You may offer subscriptions that are shared across your own apps, but these subscriptions may not extend to third party apps or services.  

Note: We will update these guidelines in the coming weeks for the subscription changes launching this fall.

3.1.3 Content-based “Reader” Apps: Apps may allow a user to access previously purchased content or subscriptions (specifically: magazines, newspapers, books, audio, music, video, access to professional databases, VoIP, cloud storage, and approved services such as educational apps that manage student grades and schedules), provided the app does not direct users to a purchasing mechanism other than IAP.  

3.1.4 Content Codes: Apps may not use their own mechanisms to unlock content or functionality, such as license keys, augmented reality markers, QR codes, etc. In limited circumstances, such as when features are dependent upon specific hardware to function, the app may unlock that functionality without using in-app purchase (e.g. an astronomy app that adds features when synced with a telescope). App features that work in combination with an approved physical product (such as a toy) on an optional basis may unlock functionality without using IAP, provided that an IAP option is available as well. You may not, however, require users to purchase unrelated products or engage in advertising or marketing activities to unlock app functionality.  

3.1.5 Physical Goods and Services Outside of the App: If your app enables people to purchase goods or services that will be consumed outside of the app, you must use purchase methods other than IAP to collect those payments, such as Apple Pay or traditional credit card entry. Apps may facilitate transmission of approved virtual currencies (e.g. Bitcoin, DogeCoin) provided that they do so in compliance with all state and federal laws for the territories in which the app functions.  

3.1.6 Apple Pay: Apps using Apple Pay must provide all material purchase information to the user prior to sale of any good or service and must use Apple Pay branding and user interface elements correctly, as described in the Apple Pay Identity Guidelines and Human Interface Guidelines. Apps using Apple Pay to offer recurring payments must, at a minimum, disclose the following information:  

*   The length of the renewal term and the fact that it will continue until canceled
*   What will be provided during each period
*   The actual charges that will be billed to the customer
*   How to cancel

3.1.1開宗明義,If you want to unlock features or functionality within your app, (by way of example: subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use in-app purchase.,如果你想解鎖你的應用程序內(nèi)的特性或者功能,如訂閱异希,游戲中的貨幣秸侣,游戲關卡,訪問高級內(nèi)容,或解鎖完整版本,必須使用蘋果內(nèi)購.

總的來說,合法的虛擬物品和服務,如雜志,照片,訂閱服務,游戲中的貨幣味榛,游戲關卡椭坚,訪問高級內(nèi)容,或解鎖完整版本,是允許并且應該使用內(nèi)購的.

我們觀察一下常用的App,優(yōu)酷搏色、網(wǎng)易云音樂善茎、愛奇藝、騰訊視頻频轿,開通會員用的蘋果內(nèi)購,淘寶或京東購物沒有用蘋果內(nèi)購,這和我們上面的認知是相符的.但我發(fā)現(xiàn)了特例:QQ充會員.然后又發(fā)現(xiàn)微信讀書沒用蘋果內(nèi)購垂涯,和它相似的多看閱讀卻用的蘋果內(nèi)購來充值,蒙了...

QQMemberCharge.png

知乎上的一個回答,給了解釋的通的答案:

實際上是個解釋權的問題航邢,如果不同的蘋果員工對不同的 Apps 把這兩條解釋出不同的意思耕赘,審核的結果就可能不一樣。我們之前就這個問題專門詢問過 Apple 的客服膳殷,他的回答是需要使用跨平臺支付和同步功能的應用可以向蘋果提出申請操骡,如果申請通過了就可以了,雖然我從來沒在蘋果網(wǎng)站上找到過這個申請的入口在哪兒赚窃。

作者:吳暢
鏈接:https://www.zhihu.com/question/20665809/answer/15788162
來源:知乎
著作權歸作者所有册招。商業(yè)轉載請聯(lián)系作者獲得授權,非商業(yè)轉載請注明出處勒极。  

最后不得不猜測:是不是因為QQ和微信讀書,跟蘋果的關系比較鐵啊...

協(xié)議是掰、稅務和銀行業(yè)務

App內(nèi)購需要填寫協(xié)議、稅務和銀行信息,這個流程我們大致走一下.

1.登錄iTunes Connect
2.進入?yún)f(xié)議辱匿、稅務和銀行業(yè)務頁面
ProtocolInterface.png
3.選擇申請合同類型

進入?yún)f(xié)議键痛、稅務和銀行業(yè)務頁面后,會有3種合同類型匾七,如果你之前沒有主動申請過去合同絮短,那么一般你現(xiàn)在激活的合同只有iOS Free Application一種.

頁面內(nèi)容分為兩塊:

  • Request Contracts(申請合同)
  • Contracts In Effect(已生效合同)

合同類型分為3種:

  • iOS Free Application(免費應用合同)
  • iOS Paid Application(付費應用合同)
  • iAd App NetNetwork(廣告合同)
ContractRequest.png

蘋果內(nèi)購中,我們需要申請付費應用合同.

接下來,我們需要填寫Contact Info(聯(lián)系信息),Bank Info(銀行信息), Tax Info(稅費信息),點擊下圖中的藍色按鈕(SetUp)添加.

ContractSetup.png
4.聯(lián)系信息
ContactInfoSetUp.png

如果你沒有添加過聯(lián)系人,你需要通過Add New Contact按鈕來添加一個新的聯(lián)系人乐尊。然后指定聯(lián)系人的職務.如果有聯(lián)系人,通過Select選擇,其中聯(lián)系人職務如下:

  • Senior Management:高管
  • Financial:財務
  • Technical:技術支持
  • Legal:法務
  • Marketing:市場推廣

如果你是獨立開發(fā)者戚丸,可以全部填你自己一個人.

5.填寫銀行信息
BankInfoSetUp.png

選擇你的銀行賬戶划址,如果你沒有扔嵌,點擊旁邊的Add Bank Account添加一個賬戶.

流程如下:

5-1 選擇銀行所在的國家

BankCountry.png

5-2 填寫銀行CNAPS Code

如果你不知道CNAPS Code是多少,可以點擊Look up Transit Number來查詢夺颤,查詢時會根據(jù)3個關鍵信息來查詢痢缎,如下:

  • Bank Name:銀行的英文名稱(不能是拼音)
  • City:銀行所在的城市英文名稱(中國的城市用拼音)
  • Postal Code:郵編
    然后在下面就會出來備選的銀行,選擇正確的銀行后世澜,點擊next独旷,進入下一步。
CNAPS.png
LookUpCNAPS.png

或者,通過網(wǎng)上查到的浙商銀行來查詢.

czbank.jpg

5-3 確認銀行信息

ConfirmBankInfo.png

5-4 填寫銀行賬號信息

  • Bank Account Number:銀行賬號
  • Confirm Bank Account Number:再次輸入銀行賬號
  • Account Holder Name:持卡人姓名,中文名用拼寫嵌洼,名在前案疲,姓在后
  • Bank Account Currency:貨幣類型,一般國內(nèi)的開發(fā)者選擇CNY
BankAccountInfo.png

5-5 確認所有信息

ConfirmInfo.png
6.填寫稅務信息

選擇U.S Tax Forms來銷售App.

TaxForm.png

選擇后會問你兩個問題麻养,第一個問題如下:詢問你是否是美國居民褐啡,有沒有美國伙伴關系或者美國公司,如果沒有直接選擇No鳖昌。

Q1.png

接下來第二個問題如下:詢問你有沒有在美國的商業(yè)性活動备畦,沒有也直接選No。

Q2.png

然后填寫你的稅務信息许昨,包括以下幾點:

ManageTaxInfo.png
  • Individual or Organization Name:個人或者組織名稱
  • Country of incorporation: 所在國家
  • Type of Beneficial Owner:受益方式懂盐,獨立開發(fā)者選個人
  • Permanent Residence:居住地址
  • Mailing address:郵寄地址
  • Name of Person Making this Declaration:聲明人
  • Title:頭銜
    填寫完這些信息后就可以提交了.
7.等待審核

大約不到一天就會通過審核.

Processing.png

審核通過后變成以下狀態(tài):

Success.png

可以通過點擊Edit或View來編輯或?qū)忛?

創(chuàng)建內(nèi)購項目

TouchMyApp.png
TouchTheProject.png
TouchInAppPurchase.png

添加適當?shù)馁徺I項目

IAPItme.png

不同的項目,處理邏輯各有差異.

一些共性的東西:

ProcudtID.png
language.png
screenshot.png

一些特殊要求:

privitePolicy.png
PrivitePolicyDemo.png

樣例:

ItemDemo.png

蘋果內(nèi)購流程

IAPFlow.png

服務端的工作比較簡單,分4步:

  1. 接收ios端發(fā)過來的購買憑證糕档。

  2. 判斷憑證是否已經(jīng)存在或驗證過莉恼,然后存儲該憑證。

  3. 將該憑證發(fā)送到蘋果的服務器驗證翼岁,并將驗證結果返回給客戶端类垫。

  4. 如果需要,修改用戶相應的會員權限琅坡。

考慮到網(wǎng)絡異常情況悉患,服務器的驗證應該是一個可恢復的隊列,如果網(wǎng)絡失敗了榆俺,應該進行重試售躁。

與蘋果的驗證接口文檔在這里。簡單來說就是將該購買憑證用Base64編碼茴晋,然后POST給蘋果的驗證服務器陪捷,蘋果將驗證結果以JSON形式返回。

蘋果AppStore線上的購買憑證驗證地址是https://buy.itunes.apple.com/verifyReceipt
測試的驗證地址是:https://sandbox.itunes.apple.com/verifyReceipt

下載源碼

簡單封裝的內(nèi)購源碼
下載地址

我自己測試內(nèi)購時源碼(我在開發(fā)者賬號上測試的這個項目,來真機調(diào)試,對看官應該沒用)
下載地址

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末诺擅,一起剝皮案震驚了整個濱河市市袖,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌烁涌,老刑警劉巖苍碟,帶你破解...
    沈念sama閱讀 218,386評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異撮执,居然都是意外死亡微峰,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,142評論 3 394
  • 文/潘曉璐 我一進店門抒钱,熙熙樓的掌柜王于貴愁眉苦臉地迎上來蜓肆,“玉大人颜凯,你說我怎么就攤上這事≌萄铮” “怎么了症概?”我有些...
    開封第一講書人閱讀 164,704評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長早芭。 經(jīng)常有香客問我穴豫,道長,這世上最難降的妖魔是什么逼友? 我笑而不...
    開封第一講書人閱讀 58,702評論 1 294
  • 正文 為了忘掉前任精肃,我火速辦了婚禮,結果婚禮上帜乞,老公的妹妹穿的比我還像新娘司抱。我一直安慰自己,他們只是感情好黎烈,可當我...
    茶點故事閱讀 67,716評論 6 392
  • 文/花漫 我一把揭開白布习柠。 她就那樣靜靜地躺著,像睡著了一般照棋。 火紅的嫁衣襯著肌膚如雪资溃。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,573評論 1 305
  • 那天烈炭,我揣著相機與錄音溶锭,去河邊找鬼。 笑死符隙,一個胖子當著我的面吹牛趴捅,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播霹疫,決...
    沈念sama閱讀 40,314評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼拱绑,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了丽蝎?” 一聲冷哼從身側響起猎拨,我...
    開封第一講書人閱讀 39,230評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎屠阻,沒想到半個月后红省,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,680評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡栏笆,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,873評論 3 336
  • 正文 我和宋清朗相戀三年类腮,在試婚紗的時候發(fā)現(xiàn)自己被綠了臊泰。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片蛉加。...
    茶點故事閱讀 39,991評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡蚜枢,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出针饥,到底是詐尸還是另有隱情厂抽,我是刑警寧澤,帶...
    沈念sama閱讀 35,706評論 5 346
  • 正文 年R本政府宣布丁眼,位于F島的核電站筷凤,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏苞七。R本人自食惡果不足惜藐守,卻給世界環(huán)境...
    茶點故事閱讀 41,329評論 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望蹂风。 院中可真熱鬧卢厂,春花似錦、人聲如沸惠啄。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,910評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽撵渡。三九已至融柬,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,038評論 1 270
  • 我被黑心中介騙來泰國打工盹廷, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留倡怎,地道東北人。 一個月前我還...
    沈念sama閱讀 48,158評論 3 370
  • 正文 我出身青樓舵匾,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子门怪,可洞房花燭夜當晚...
    茶點故事閱讀 44,941評論 2 355

推薦閱讀更多精彩內(nèi)容