`
stephen830
  • 浏览: 3016877 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

(4)Testing Your In-app Billing Application

 
阅读更多

(4)Testing Your In-app Billing Application

To ensure that In-app Billing is functioning correctly in your application, you should test the test the application before you publish it on Google Play. Early testing also helps to ensure that the user flow for purchasing in-app items is not confusing or slow, and that users can see their newly purchased items in a timely way.

Test with Static Responses


Test your In-app Billing application with static responses by using Google Play’s reserved product IDs.By using reserved product IDs instead of actual product IDs, you can test the purchase flow without specifying an actual payment method or transferring money. To learn more about the reserved product IDs, see Testing In-app Billing.

Test with Your Own Product IDs


Because Google Play does not allow you to use your developer account to directly purchase in-app products that you have created yourself, you'll need to create test acccounts under your developer account profile. To create a test account, simply enter a valid Google email address. Users with these test accounts will then be able to make in-app-billing purchases from uploaded, unpublished applications that you manage.

 

To test your In-app Billing Version 3 application using your own product IDs:

  1. In the Developer Console, add one or more tester accounts to the developer account that you are using to publish your application.
    1. Login to the Developer Console with your developer account.
    2. Click Settings > Account details, then in the License Testing section, add the Google email addresses for your tester accounts.
  2. Build a signed APK file for your In-app Billing application. To learn how to build and sign your APK, see Building Your Application for Release. Make sure that you are using your final (not debug) certificate and private key to sign your application.
  3. Make sure that you have uploaded the signed APK for your application to the Developer Console, and associated one or more in-app products with your application. You don't need to publish the application on Google Play to test it.

    Warning: It may take up to 2-3 hours after uploading the APK for Google Play to recognize your updated APK version. If you try to test your application before your uploaded APK is recognized by Google Play, your application will receive a ‘purchase cancelled’ response with an error message “This version of the application is not enabled for In-app Billing.”

  4. Install the APK file to your physical test device by using the adb tool. To learn how to install the application, see Running on a Device. Make sure that:
    • Your test device is running on Android SDK Version 2.2 (API level 8) or higher, and is installed with Google Play client Version 3.9.16 or higher.
    • The android:versionCode and android:versionName attributes values in the AndroidManifest.xml of the application that you are installing matches the values of your APK in the Developer Console.
    • Your application is signed with the same certificate that you used for the APK that you uploaded to the Developer Console, before installing it on your device.
  5. Login to the test device by using a tester account. Test your In-app Billing application by purchasing a few items, and fix any issues that you encounter. To learn more about how you can perform large-scale testing of your In-app Billing app, see Test Purchases (In-app Billing Sandbox).

 

 

 

 

 

 

 

分享到:
评论

相关推荐

    Android Developer Guide - In-app Billing

    ### Android Developer Guide - In-app Billing #### 一、In-app Billing 概览 In-app Billing 是一项由 Android Market 提供的服务,它允许开发者在应用程序内销售数字内容。这些内容可以包括但不限于可下载的...

    Google Play 应用内支付(In-app Billing V2 + V3)

    **Google Play 应用内支付(In-app Billing V2 + V3)** Google Play 的应用内支付服务(In-app Billing)允许开发者在他们的应用程序中销售数字商品和服务,为用户提供便捷的购买体验,同时帮助开发者实现收入增长...

    Android代码-android-inapp-billing-v3

    Add this Android In-App Billing v3 Library to your project: If you guys are using Eclipse, download latest jar version from the releases section of this repository and add it as a dependency If you ...

    Google Play In-app Billing

    ### Google Play In-app Billing知识点详解 #### 一、概述 Google Play In-app Billing(应用内购)是Google为Android开发者提供的一个服务,允许用户在已安装的应用程序内进行购买操作,如购买虚拟商品、订阅服务...

    Android_Billing:专注于 Google Play In-app Billing 的 Android 测试应用程序

    4. **调试和日志** - 使用 Android 的 Logcat 工具查看 In-app Billing 相关的日志,有助于识别和解决问题。 ### 五、安全与最佳实践 1. **安全验证** - 总是在服务器端验证购买凭证,不要仅在客户端做判断,以免...

    Android-AndroidIn-AppBillingv3Library开发者通过Androidv3API轻松处理应用程序支付问题

    2. **集成Library**:将anjlab-android-inapp-billing-v3-88f7efa库导入到项目中,确保依赖正确配置。 3. **初始化**:在应用启动时,初始化`BillingClient`并建立连接,以便进行后续操作。 4. **查询商品**:使用`...

    In-app payment is one of the ways to earn money from the applica

    - **支付网关**:如Apple的App Store In-App Purchases、Google Play的Billing System,它们处理用户的支付信息,并确保交易安全。 - **后端服务器**:验证交易,管理用户账户,记录购买历史。 - **客户端集成**:...

    react-native-billing, 在Android上,将本地桥反应到InApp计费.zip

    react-native-billing, 在Android上,将本地桥反应到InApp计费 用于 Android 的InApp计费 本机计费 为 InApp Billing提供一个易于使用的界面,它通过包装anjlab计费库的 InApp来完成。const InAppBilling = require...

    Godot-Myket-In-App-Billing:适用于Godot Game Engine的软应用内结算插件

    Godot-Myket-In-App-Billing插件的源代码包含在Godot-Myket-In-App-Billing-master压缩包中,开发者可以通过阅读源代码来了解其工作原理和实现细节,也可以根据自己的需求对其进行修改和扩展。这个插件的出现,极大...

    Android代码-Reactive-Billing

    Reactive Billing is a lightweight reactive wrapper around In App Billing API v3 for Android. Features Reactive: Exposes the In App Billing service methods as Observable, allowing to implement easy ...

    PyPI 官网下载 | django-aws-billing-0.1.3.tar.gz

    标题"PyPI 官网下载 | django-aws-billing-0.1.3.tar.gz"表明这是一个在Python Package Index (PyPI)官网上可以找到的软件包,名为`django-aws-billing`,版本号为0.1.3,其分发形式是一个tar.gz压缩文件。...

    pay-me:用于处理In-App-Billing V3的Android库

    一个基于Google的可示例代码来处理In-App-Billing V3( )的Android库。 该项目的目标是构建一个可靠且经过测试的库,可以轻松地将其作为包含在您的(基于Maven的)项目中。 Google的示例代码已经过重构并可以测试...

    SAP EDI Inter-Company Billing

    NULL 博文链接:https://jgtang82.iteye.com/blog/282364

    in-app-purchase:在应用内购买Android应用程序

    在Android平台上,应用内购买(In-App Purchase,简称IAP)是一种常见的商业模式,允许开发者在应用程序中提供额外的功能、内容或服务以获取收入。本文将深入探讨如何在Android应用中实现IAP功能,主要关注Java语言...

    Android代码-RxIAPv3

    Based on the initial work of Anjlab (https://github.com/anjlab/android-inapp-billing-v3). This library provides the existing functionality of Anjlab's initial work and as well a lot of helper methods ...

    Android代码-android-checkout

    Checkout (Android In-App Billing Library) Description Checkout is an implementation of Android In-App Billing API (v3 ). Its main goal is to make integration of in-app products as simple and straight...

    google-billing-4.0.0.jar

    google-billing-4.0.0.jar

    java eclipse gef

    4. **手势和事件处理**:GEF支持多种手势(如鼠标点击、拖拽)和事件,允许开发者定义自定义的行为响应。 5. **模型-视图绑定**:通过适配器(Adapter)和模型观察者(Observer)模式,确保图形视图与数据模型的...

    billing.zip

    在Android应用内实现Google Pay通常涉及到使用Google的In-app Billing服务。这是一个API,允许开发者在应用程序中销售数字内容和服务,包括但不限于应用内购买、订阅和一次性付费项目。Google Pay可以作为这些交易的...

Global site tag (gtag.js) - Google Analytics