void purchaseSuccessfulEvent(AmazonReceipt transaction) { LogUtil.LogProduct("ANDROID_AMAZON purchaseSuccessfulEvent: transaction.sku:" + transaction.sku + "\r\n token:" + transaction.token + "\r\n type:" + transaction.type); SetContentAccessPermissions(transaction.sku); Contents.Instance.SetContentAccessTransaction(transaction.sku, transaction.sku, transaction.token, 1, true); purchaseProcessCompleted = true; HandleSuccess(); }
public void purchaseUpdatesRequestSuccessful(string json) { if (purchaseUpdatesRequestSuccessfulEvent != null) { var ht = json.hashtableFromJson(); var revokedSkus = ht["revokedSkus"] as ArrayList; var receipts = ht["receipts"] as ArrayList; purchaseUpdatesRequestSuccessfulEvent(revokedSkus.ToList <string>(), AmazonReceipt.fromArrayList(receipts)); } }
void purchaseSuccessfulEvent(AmazonReceipt receipt) { Debug.Log("purchaseSuccessfulEvent: " + receipt); }