Android Paytm Payment Gateway Integration

I am trying to integrate paytm payment gateway into my android application. I seem to be unable to find the correct documentation or procedures on their website. I checked every manual on this through Google, but no help. I tried to contact the Paytm team by mail and phone. No answer. now i'm stuck here.

here's what i'm going through:

paramMap.put("REQUEST_TYPE", "DEFAULT"); paramMap.put("ORDER_ID", String.valueOf(randomInt)); paramMap.put("MID", "************2343"); paramMap.put("CUST_ID", "CUST123"); paramMap.put("CHANNEL_ID", "WAP"); paramMap.put("INDUSTRY_TYPE_ID", "Retail"); paramMap.put("WEBSITE", "frshlrfowap"); paramMap.put("TXN_AMOUNT", "1"); paramMap.put("EMAIL", " testing@gmail.com "); paramMap.put("MOBILE_NO", "9876543210"); paramMap.put("THEME", "merchant"); 

Below is an error in the output log I get: project output log

+6
source share
4 answers

So finally, I was able to get through. Most importantly, you need to contact the Paytm Ops team. Contact the person who provided the key and ID and he will lead to the Tech / ops team. Share magazines with them.

send them by mail: cmt.ops@paytm.com and tech.ops@paytm.com

For Paytm, configure the Merchant Key on server-side files (verifyChecksum.php and generateChecksum.php) . My question is: My client provided another Merchant Key (maybe Sandbox one), which led me to "Client Authentication Error." After exchanging the logs with their team, they provided the correct key, and I began to get the correct answer from the server. Also, check for INDUSTRY_TYPE_ID "with support guys. Invalid INDUSTRY_TYPE_ID" will lead you to a different error.

Good luck !!

+1
source

To integrate Paytm into the Android application, please add the dependency in the Gradle file.

 // paytm dependency implementation('com.paytm:pgplussdk:1.2.3') { transitive = true; } 

Add Paytm activity to Android andif file

 <activity android:name="com.paytm.pgsdk.PaytmPGActivity" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation|keyboard"/> 

In order to generate a checksum, you do not need to pass an email id and a mobile phone number. You should pass only 8 parameters as below-

  String url ="https://www.blueappsoftware.com/payment/payment_paytm/generateChecksum.php"; String varifyurl = "https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp"; String param= "MID="+mid+ "&ORDER_ID=" + orderId+ "&CUST_ID="+custid+ "&CHANNEL_ID=WAP&TXN_AMOUNT=100&WEBSITE=WEBSTAGING"+ "&CALLBACK_URL="+ varifyurl+"&INDUSTRY_TYPE_ID=Retail"; 

Please check this link link. You can find the step-by-step process at this link- https://www.blueappsoftware.com/paytm-payment-gateway-integration-android-studio/

+2
source

according to my information, you need authorization permissions from paytm without this, you cannot use it, try to get it first. or an easy way is to use webview and embed a paytm link in it and allow the user to interact directly with it.

0
source

Try this answer:

Go and open this link.

1) Download Android + SDK

2) After downloading it, you will get pgsdk.jar , and also put it in the project folder.

3) Now put your code.

4) In their code, they request the URLs of ChecksumGenerator and ValidateChksum, intended for testing purposes. You can get it by contacting the paytm development support team and they will provide you with a checksum verification code and a checksum verification code, including a merchant ID and all the necessary things that need to be deployed on your server.

And after successful integration, your problem can be solved.

See the link below for some facts about PayTm.

https://www.quora.com/How-do-I-integrate-Paytm-wallet-in-an-Android-application-as-a-payment-option-just-like-in-the-Uber-app

0
source

All Articles