/// <summary>구매 트랜젝션이 시작하고 성공시 실행</summary> private void OnPurchaseProduct(PurchaseEventArgs args) { SSIAPCallback.OnPurchaseSuccess((PurchaseEventArgs)args); var data = new Dictionary <string, object>() { { "uid", args.purchasedProduct.definition.id }, { "purchase_date", System.DateTime.Now.ToString() }, { "tid", args.purchasedProduct.transactionID } }; //StartCoroutine(SSLogSender.SendEventLog("rb_btn", data)); PlayerPrefs.SetInt("isPurchased", 1); PlayerPrefs.Save(); }
/// <summary>구매 트랜젝션이 시작하고 실패시 실행</summary> private void OnPurchaseProductFailed(Product i, PurchaseFailureReason p) { switch (p) { case PurchaseFailureReason.PurchasingUnavailable: SSIAPCallback.OnPurchaseFailed(); break; default: SSIAPCallback.ShowPopupForPurchaseFailed(); break; } var data = new Dictionary <string, object>() { { "item_name", i.definition.id }, { "tid", i.transactionID } }; //StartCoroutine(SSLogSender.SendEventLog("lb_btn", data)); }