Skip to content Skip to sidebar Skip to footer

Paytm Verifychecksum Error

i am getting verify checksum error in paytm to android app i have created check sum in php and sending from server to android app.once app received check sum again parameters will

Solution 1:

There can be few things that may have gone wrong.

Let me briefly state step by step process first, so if you find something that is different than what you have done, we can pin point error quickly.

1) App usually triggers payment and with that sends all data with which checkSum needs to be generated.

2) Only server must generate checksum(purely for security reason)

3) Checksum generation method for payment and refund is different. At least in Java and Python.(This is really silly from Paytm and it is bit of a mess but that's a story for another day)

4) App must call Paytm API(with or without SDK), and once response is received must ask server to verify checksum send within response.

Cautions :-

1) Parameters that are send to Paytm must be same to those used in checkSum generation. Not less not more and Needless to say, white space, enter, dash all counts and will fail your checkSum verification.

2)If you are processing Refund, don't sent REFID in checkSum generation but send it when calling Paytm API.

Solution 2:

I don't see you generating anywhere checksum, checksum should be done for all the params you are planning to send.

It seems you: String checksum = pref.getchecksum(); where is the implementation of getchecksum? keep it out of the main object and then try again.

Solution 3:

Its simple to use paytm checksum in spring.

The runtime causes some problems.

3 simple steps to resolve every problem.

1: - add this dependency to you pom.xml

<dependency><groupId>com.paytm.pg</groupId><artifactId>pg-checksum</artifactId><version>1.0</version></dependency>

2: download "pg-checksum-1.0.jar" file and rename "pg-checksum-1.0"

3: paste the pg-checksum-1.0.jar to "C:\Users\xyz.m2\repository\com\paytm\pg\pg-checksum\1.0"

Now clean and build your project you will get your checksum string.

happy to help ;-)

Post a Comment for "Paytm Verifychecksum Error"