Telecom SDK pay function inside System.out.print no output message

Source: Internet
Author: User

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 ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.