//---------------------------------------------------------------------
        public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result)
        {
            switch (option_type)
            {
            case _ePayOptionType.QueryInventory:
                break;

            case _ePayOptionType.PurchaseProduct:
                CasinosContext.Instance.UiEndWaiting(CasinosContext.Instance.ViewHelper);
                if (is_success)
                {
                    Purchase purchase = (Purchase)result;
                    if (ActionPayWithIAPSuccess != null)
                    {
                        ActionPayWithIAPSuccess(purchase);
                    }
                }
                else
                {
                    if (ActionPayWithIAPFailed != null)
                    {
                        ActionPayWithIAPFailed(result.ToString());
                    }
                }
                break;

            case _ePayOptionType.ConsumeProduct:
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 //---------------------------------------------------------------------
 public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result)
 {
     //    switch (option_type)
     //    {
     //        case _ePayOptionType.QueryInventory:
     //            break;
     //        case _ePayOptionType.PurchaseProduct:
     //            //CasinosContext.Instance.UiEndWaiting(CasinosContext.Instance.ViewHelper);
     //            if (is_success)
     //            {
     //                Purchase purchase = (Purchase)result;
     //                if (ActionPayWithIAPSuccess != null)
     //                {
     //                    ActionPayWithIAPSuccess(purchase);
     //                }
     //            }
     //            else
     //            {
     //                if (ActionPayWithIAPFailed != null)
     //                {
     //                    ActionPayWithIAPFailed(result.ToString());
     //                }
     //            }
     //            break;
     //        case _ePayOptionType.ConsumeProduct:
     //            break;
     //        default:
     //            break;
     //    }
 }
Exemplo n.º 3
0
 //-------------------------------------------------------------------------
 public void PayResult(_ePayOptionType option_type, bool is_success, object result)
 {
     Debug.Log("PayResult::" + result);
     if (PayReceiverListener != null)
     {
         PayReceiverListener.PayResult(option_type, is_success, result);
     }
 }
Exemplo n.º 4
0
 //-------------------------------------------------------------------------
 public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result)
 {
     Debug.Log("PayResultIPA::" + result);
     if (PayReceiverListener != null)
     {
         PayReceiverListener.PayResultIPA(option_type, is_success, result);
     }
 }
Exemplo n.º 5
0
 //-------------------------------------------------------------------------
 public void PayResult(_ePayOptionType option_type, bool is_success, object result)
 {
     Debug.Log("PayResult::" + result);
 }
Exemplo n.º 6
0
 //-------------------------------------------------------------------------
 public void PayResult(_ePayOptionType option_type, bool is_success, object result)
 {
     Debug.Log("PayResult::" + result);
 }