Android in-app billing前言]In-app Billing應用程式內部付費機制(中文翻譯)

转自http://lp43.blogspot.com/


應用程式內付費機制

 

 

原文連結︰IN-APP BILLING
翻譯︰小鰻
翻譯版本號︰V.1.0
如需轉載請註明出處「小鰻的ANDROID學習筆記
讓我參與最直接的討論以及錯誤修正, 謝謝!

Android Market In-app Billing is an Android Market service that lets you sell digital content in your applications. You can use the service to sell a wide range of content, including downloadable content such as media files or photos, and virtual content such as game levels or potions.

Android市集的應用程式內付費機制(In-app Billing,以下簡稱iap)是Android市集的一項服務,讓你能夠在應用程式內銷售你的數位化內容。你可以用這項服務銷售任何的內容,包括可下載的內容(像是多媒體檔案或照片)、虛擬內容(遊戲等級或藥劑)

When you use Android Market's in-app billing service to sell an item, Android Market handles all checkout details so your application never has to directly process any financial transactions. Android Market uses the same checkout service that is used for application purchases, so your users experience a consistent and familiar purchase flow (see figure 1). Also, the transaction fee for in-app purchases is the same as the transaction fee for application purchases (30%).  


當你開始使用Android市集的 iap服務銷售商品時,Android市集處理了所有的付款項目,因此你的應用程式完全沒有直接的交涉到財務相關的交易。Android市集使用了同一套付款服務來讓程式能夠購買商品,所以你的使用者會有一套像圖1相似的使用經驗。並且,在這裡要說明的是, iap的服務費和市集銷售的服務費是一樣的(皆為30%抽成)。

Any application that you publish through Android Market can implement in-app billing. No special account or registration is required other than an Android Market publisher account and a Google Checkout Merchant account. Also, because the service uses no dedicated framework APIs, you can add in-app billing to any application that uses a minimum API level of 4 or higher. 

任何經過Android市集發佈的APP都能夠使用iap,完全不需要做任何的其它設定,像是又註冊一組Android Market publisher帳戶或Google Checkout Merchant帳戶。更好的消息是︰由於這項服務並沒有指定在APIs架構中,因此你可以在level 4(Android1.5)或以上的任何APP上使用。

 

To help you integrate in-app billing into your application, the Android SDK provides a sample application that demonstrates a simple implementation of in-app billing. The sample application contains examples of billing-related classes you can use to implement in-app billing in your application. It also contains examples of the database, user interface, and business logic you might use to implement in-app billing.

為了幫助你將iap機制整合進你的APP裡,Android SDK提供了一個範例程式來說明如何簡單的實作iap機制。範例APP包含了和付費機制相關的類別們,你可以拿進你的APP裡來實作並使用。這個範例裡也包含了資料庫的範例、使用者介面和你也許會拿來實作使用的應用程式付費商業邏輯。

Important: Although the sample application is a working example of how you can implement in-app billing, we strongly recommend that you modify and obfuscate the sample code before you use it in a production application. For more information, see Security and Design.

重要︰雖然範例裡能正常運作應用程式內部付費機制,我們在此強烈的建議你修改而且混淆範例的程式碼 ,由其在你開始使用他們進你的APP產品前。更多的內容,請參見Security and Design這篇文章。

 Figure 1. Applications initiate in-app billing requests through their own UI (first screen). Android Market responds to the request by providing the checkout user interface (middle screen). When checkout is complete, the application resumes.

圖1.應用程式透過開發者自己設計的介面來請求並使用iap機制(第一張)。Android市集回應傳來的請求,並且提供付費介面(中間)。當付費完成時,就會呼叫application的onResume(),見右圖。

To learn more about Android Market's in-app billing service and start integrating it into your applications, read the following documents:

若要學習並了解更多的Android市集iap服務機制並且整合進您的APP,請參閱下列的文件︰

Overview of In-app Billing應用程式內部付費機制概述[原文][中譯]
Learn how the service works and what a typical in-app billing implementation looks like.
這章裡可以學到應用程式內部金流服務是如何運作的,並且可以看到實作應用程式內部金流機制的典型樣式為何 。
Implementing In-app Billing實作應用程式內部金流機制[原文][中譯]
Use this step-by-step guide to start incorporating in-app billing into your application.
藉由一步一步的引導,將應用程式內部金流機制整合進您的APP裡 。
Security and Design安全與設計[原文][中譯]
Review these best practices to help ensure that your in-app billing implementation is secure and well designed.
檢視這些相當棒的練習來幫助您實作iap機制出來的APP更加的安全,也有更好的設計。
Testing In-app Billing測試應用程式內金流機制[原文][中譯]
Understand how the in-app billing test tools work and learn how to test your in-app billing implementation.
了解應用程式內部金流測試工具是如何運作,並且學習如何測試您實作出來的iap機制。
Administering In-app Billing應用程式內金流機制的管理[原文][中譯]
Learn how to set up your product list, register test accounts, and handle refunds.
學習如何設定您的產品列表、註冊測試帳戶和處理退款的問題。
In-app Billing Reference應用程式金流的相關API[原文][中譯]
Get detailed information about Android Market response codes and the in-app billing interface.
這篇能獲得關於Android Market回應碼(response codes)和應用程式內部金流接口的詳細資訊。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值