我已成功设法在Android中实施In-App Billing
我遇到的唯一问题是,当我使用restoreTransaction()
方法要求Google
将order id
返回Signed Data
时(购买状态)。
即使已购买该商品,它也会返回Null orders array
这是日志:
08-27 08:30:24.342: I/BillingService(17152): handleCommand() action: com.android.vending.billing.PURCHASE_STATE_CHANGED
08-27 08:30:24.342: I/BillingService(17152): purchaseStateChanged
08-27 08:30:24.342: I/class com.folio3.games.candymonster.billing.Security(17152): signedData: {"nonce":XXXXXXXXXXXXXXXXXXXXXXXXX,"orders":[]}
08-27 08:30:24.362: I/class com.folio3.games.candymonster.billing.Security(17152): signature: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX