App In Billing: Alpha Test - 购买商品后,是否可以检查商品是否已购买?在 Aplha 测试模式
App In Billing: Alpha Test - After bought item, is possible to check if item is purchased? In Aplha test mode
我的应用内结算在我的测试中工作正常。
但是使用我的商品 SKU 并在 ALPHA 测试模式下成功购买后,我检查商品是否已购买似乎不起作用。
有人知道检查商品是否已购买是否适用于 APLHA 测试?
因为在我看来,购买的 ALPHA 测试是假的,没有被注册。
谢谢!
它在 alpha 和 beta 版本中的工作方式相同。这一定是您代码中某处的问题。我建议查看此文档:Testing In-app Billing
您还可以使用静态 ID 来测试 IAP,即:
android.test.purchased
When you make an In-app Billing request with this product ID, Google
Play responds as though you successfully purchased an item. The
response includes a JSON string, which contains fake purchase
information (for example, a fake order ID). In some cases, the JSON
string is signed and the response includes the signature so you can
test your signature verification implementation using these responses.
我的应用内结算在我的测试中工作正常。
但是使用我的商品 SKU 并在 ALPHA 测试模式下成功购买后,我检查商品是否已购买似乎不起作用。
有人知道检查商品是否已购买是否适用于 APLHA 测试? 因为在我看来,购买的 ALPHA 测试是假的,没有被注册。
谢谢!
它在 alpha 和 beta 版本中的工作方式相同。这一定是您代码中某处的问题。我建议查看此文档:Testing In-app Billing
您还可以使用静态 ID 来测试 IAP,即:
android.test.purchased
When you make an In-app Billing request with this product ID, Google Play responds as though you successfully purchased an item. The response includes a JSON string, which contains fake purchase information (for example, a fake order ID). In some cases, the JSON string is signed and the response includes the signature so you can test your signature verification implementation using these responses.