Example #1
0
        public override void PayFinishedCallBack(string param)
        {
            SDKPayResult payResult = new SDKPayResult();
            int          result    = 0;

            if ((!int.TryParse(param, out result) || (result == 0x3e8)) || (result == 0x1771))
            {
                payResult.payRetCode = PayResult.PayRetcode.FAILED;
            }
            else
            {
                payResult.payRetCode = PayResult.PayRetcode.SUCCESS;
            }
            Singleton <ChannelPayModule> .Instance.OnPurchaseCallback(payResult);
        }
Example #2
0
        public override void PayFinishedCallBack(string param)
        {
            SDKPayResult payResult = new SDKPayResult();

            if (param == "4")
            {
                payResult.payRetCode = PayResult.PayRetcode.CANCELED;
            }
            else if (param == "2")
            {
                payResult.payRetCode = PayResult.PayRetcode.FAILED;
            }
            else
            {
                payResult.payRetCode = PayResult.PayRetcode.SUCCESS;
            }
            Singleton <ChannelPayModule> .Instance.OnPurchaseCallback(payResult);
        }