paypal - Steps to create escrow payment integration in android source code -
i want integrate escrow payment integration in our e-commerce android application. please tell me steps create escrow account integration in android application.
integrate paytym this..
random randomgenerator = new random(); randomint = randomgenerator.nextint(1000); //for testing environment service = paytmpgservice.getstagingservice(); paytmmerchant merchant = new paytmmerchant("https://pguat.paytm.com/merchant-chksum/checksumgenerator","https://pguat.paytm.com/merchant-chksum/validatechksum"); log.e("value","value"); map<string, string> parammap = new hashmap<string, string>(); //these mandatory parameters parammap.put("request_type", "default"); parammap.put("order_id", string.valueof(randomint)); //mid provided paytm parammap.put("mid", "id provided paytm"); parammap.put("cust_id", "cust123"); parammap.put("channel_id", "wap"); parammap.put("industry_type_id", "retail"); parammap.put("website", "paytm"); parammap.put("txn_amount", "1"); parammap.put("theme", "merchant"); paytmorder order = new paytmorder(parammap); service.initialize(order, merchant,null); log.e("value1111","value"); service.startpaymenttransaction(this, true, true, new paytmpaymenttransactioncallback() { @override public void ontransactionsuccess(bundle bundle) { app.getlogger().error("transaction success :" + bundle); log.e("transaction success :",""+bundle); } @override public void ontransactionfailure(string s, bundle bundle) { app.getlogger().error("transaction failure :" + s + "\n" + bundle); log.e("transaction failure :",s+" "+bundle); } @override public void networknotavailable() { app.getlogger().error("network unavailable :"); log.e("network unavailable :","network unavailable : "); } @override public void clientauthenticationfailed(string s) { app.getlogger().error("clientauthenticationfailed :" + s); log.e("clientauthenticationfailed :",s+" "); } @override public void someuierroroccurred(string s) { app.getlogger().error("someuierroroccurred :" + s); log.e("someuierroroccurred :",s+" "); } @override public void onerrorloadingwebpage(int i, string s, string s2) { app.getlogger().error("errorloadingwebpage :" + + "\n" + s + "\n" + s2); log.e("errorloadingwebpage :",i+" "+s+" "+s2); } }); }
checksumgenerator
, validatechksum
provide paytym team.
Comments
Post a Comment