我知道我们不能orderId在测试中用作全局唯一事务ID,因为它orderId可以为null。
在https://developer.android.com/google/play/billing/billing_testing.html中
注意:测试购买没有
orderId字段。要跟踪测试购买,请改用该purchaseToken字段。
对我来说,尚不清楚是否purchaseToken在全球范围内是唯一的。
在https://developer.android.com/google/play/billing/billing_reference.html中
令牌,用于唯一标识给定项目和用户对的购买。
购买其他商品或用户时可以重复吗?
如何确定所有测试购买?