我在我的应用中实施Google Play Billing API v3,并使用Google play static testing SKUs对其进行测试。
The Fllow是:
A
,请跳至3。A
A
我将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在我的应用程序继续运行时没有显示任何内容。
重要的是要注意购买似乎是成功完成的,因为下一个项目显示为购买(后来成功消费)