How to integrate TEST PayU Payment Gateway in android application?

后端 未结 8 1356
鱼传尺愫
鱼传尺愫 2021-02-08 22:40

I am new in Payment Gateway. Currently, I am working on a mobile app where I need to integrate PayU payment gateway in android app.

So far, I have created a code for TES

8条回答
  •  北恋
    北恋 (楼主)
    2021-02-08 23:28

    I think your code is okay, I am also doing same and got to know from payu that test merchant_key and salt is not working currently. Try for production mode.

    If you want to load data from server use(postUrl):

     post_Data = "hash="+PayMentGateWay.this.hash+"&key="+merchant_key+"&txnid="+PayMentGateWay.this.params.get("txnid")+"&amount="+PayMentGateWay.this.params.get("amount")+
                    "&productinfo="+PayMentGateWay.this.params.get("productinfo")+"&firstname="+PayMentGateWay.this.params.get("firstname")+
                    "&email="+PayMentGateWay.this.params.get("email")+"&phone="+PayMentGateWay.this.params.get("phone")+
                    "&surl="+PayMentGateWay.this.params.get("surl")+"&furl="+ PayMentGateWay.this.params.get("furl")+
                    "&service_provider="+ "payu_paisa";
    
     webView.postUrl("https://secure.payu.in/_payment", EncodingUtils.getBytes(post_Data, "base64"));
    

    I hope this help.

提交回复
热议问题