Private voidPay (hashmap<string, string>payparams) {System. out. Print ("----------pay Dianxin----------"); Do not use this function to debug output message.
Unityplayer.unitysendmessage (M_gameobject,"Message","Pay dianxin ..."); Egamepay.pay (M_context,payparams,NewEgamepaylistener () {@Override Public voidPaysuccess (map<string, string>params) {
System. out. println ("prop--"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--success");
Params.get (EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) returns the item name such as: Gold X6000 log.d ("Unity3d","prop-log-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--success"); Unityplayer.unitysendmessage (M_gameobject,"onpaysuccess","prop-unity-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--success"); } @Override Public voidPayfailed (map<string, string>params,interrorint) {System. out. println ("prop--"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--faild,code="+errorint); LOG.D ("Unity3d","prop-log-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--faild,code="+errorint); Unityplayer.unitysendmessage (M_gameobject,"Onpayfaild","prop-unity-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--faild,code="+errorint); } @Override Public voidPaycancel (map<string, string>params) {System. out. println ("prop--"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--cancel"); LOG.D ("Unity3d","prop-log-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--cancel"); Unityplayer.unitysendmessage (M_gameobject,"Onpaycancel","prop-unity-"+params.Get(EGAMEPAY.PAY_PARAMS_KEY_TOOLS_DESC) +"--cancel"); } }); }
Telecom test is real paid no free test ...