Example #1
0
 static public int IOSPay_AddOrderNum_s(IntPtr l)
 {
     try {
         System.String a1;
         checkType(l, 1, out a1);
         System.String a2;
         checkType(l, 2, out a2);
         System.String a3;
         checkType(l, 3, out a3);
         ShopData.IOSPay_AddOrderNum(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #2
0
        //购买商品回调
        void OnBuyCompleteItem(string sJason)
        {
            //Utils.LogSys.Log("--------------AppStorePay callback 0-------------sJason:" + sJason);
            JSONObject arrStr = new JSONObject(sJason);
            Dictionary <string, string> _dic = arrStr.ToDictionary();

            if (_dic == null)
            {
                Utils.LogSys.Log("--------------AppStorePay callback 1-------------");
            }
            string nsRlt         = "";////nRlt:0进行中 1成功 2失败 3重新提交 4排队中
            string nsIdentifier  = "";
            string nsReceipt     = "";
            string nsTransaction = "";

            if (_dic.ContainsKey("nsRlt"))
            {
                nsRlt = _dic["nsRlt"];
            }
            if (_dic.ContainsKey("nsIdentifier"))
            {
                nsIdentifier = _dic["nsIdentifier"];
            }
            if (_dic.ContainsKey("nsReceipt"))
            {
                nsReceipt = _dic["nsReceipt"];
            }

            if (_dic.ContainsKey("nsTransactionNum"))
            {
                nsTransaction = _dic["nsTransactionNum"];
            }
            ShopData.IOSPay_AddOrderNum(nsTransaction, nsReceipt, nsIdentifier);
            Utils.LogSys.Log("--------------AppStorePay callback 2-------------nsRlt:" + nsRlt + " ,nsIdentifier:" + nsIdentifier + " , nsReceipt:" + nsReceipt);

            BuyItem_AppStore_Callback(nsRlt, nsIdentifier, nsReceipt, nsTransaction);
        }