成功(测试)付款后Google Play崩溃

时间:2015-12-01 12:24:59

标签: android google-play in-app-billing

我在我的应用中实施Google Play Billing API v3,并使用Google play static testing SKUs对其进行测试。

The Fllow是:

  1. 如果已购买商品A,请跳至3。
  2. 购买A
  3. 消耗A
  4. 我将startIntentSenderForResult()称为here

    Bundle bundle = m_billingServiceConnection.GetService().getBuyIntent(
                    GOOGLEPLAY_BILLING_API_VERSION,
                    m_packageName,
                    productId,
                    purchaseType,
                    purchasePayload);
    
            if (bundle != null) {
                int response = bundle.getInt(RESPONSE_CODE);
                if (response == BILLING_RESPONSE_RESULT_OK) {
                    PendingIntent pendingIntent = bundle.getParcelable(BUY_INTENT);
                    if (activity != null && pendingIntent != null)
                        activity.startIntentSenderForResult
    (pendingIntent.getIntentSender(), REQUEST_CODE, new Intent(), 0, 0, 0);
    

    按预期显示了Google的付款对话框。但是,提交后,谷歌播放崩溃(" X不幸停止工作"弹出窗口),我的onActivityResult()永远不会被称为

    logcat在我的应用程序继续运行时没有显示任何内容。

    重要的是要注意购买似乎是成功完成的,因为下一个项目显示为购买(后来成功消费)

0 个答案:

没有答案
相关问题