Paytm integration with android

Updated 24 September 2023


Paytm Payment Gateway flow and how it work :-


Android Configurations

  1. Obtain the following

                Add Client-side certificate file inside the raw folder. If the raw folder is not there then create the raw folder within the “res” folder.

  • For going Live, please add the following to the ProGuard file:

Once you have completed the above configuration setup, then you can start using PG Service API’s.

Following is a sample implementation of the APIs.



. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


  • Ramesh Akula
    What is “Client Certificate and Encrypted password” ?

    Where I can obtain these certificate and details:

    PaytmClientCertificate Certificate = new PaytmClientCertificate(String, String inFileName);

    • ashwini gupta
      In cryptography, a client certificate is a type of digital certificate that is used by client systems to make authenticated requests to a remote server. Client certificates play a key role in many mutual authentication designs, providing strong assurances of a requester’s identity.
      Client certificate is not required for the integration of Paytm sdk.
      It is given by the Merchant to his clients. and also it is not goes to paytm payment gateway transaction through the sdk.
  • manoj
    what is MID in line no:8 “paramMap.put(“MID”, “klbGlV59135347348753″);”
    • Mobikul Team
      Hello Manoj, MID is seller merchant id i.e. provided by the Paytm when seller create his account on Paytm.
  • Shivayogi hiremath
    Hi am getting So many WEBUI errorissue on Android App… im loosing costomers…how to resolve it ?
    • Ashwini Gupta
      Hello, i am not understand what you say, so, please tell us which regarding you face issue.
  • Nishad
    My debug console

    E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
    D/ViewRootImpl: #1 mView =$DecorView{a344ae6 I.E…… R…..ID 0,0-0,0}
    W/AudioCapabilities: Unsupported mime audio/mpeg-L1
    W/AudioCapabilities: Unsupported mime audio/mpeg-L2
    W/AudioCapabilities: Unsupported mime audio/x-ms-wma
    W/AudioCapabilities: Unsupported mime audio/x-ima
    D/ConnectivityManager: requestNetwork; getAppId(CallingUid) : 10166, CallingPid : 27482
    W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
    D/PGSDK: Page started loading
    D/PGSDK: Progress dialog started
    W/AudioCapabilities: Unsupported mime audio/evrc
    W/AudioCapabilities: Unsupported mime audio/qcelp
    W/AudioCapabilities: Unsupported mime audio/qcelp
    W/AudioCapabilities: Unsupported mime audio/evrc
    W/VideoCapabilities: Unsupported mime video/wvc1
    W/VideoCapabilities: Unsupported mime video/x-ms-wmv
    D/libGLESv2: DTS_GLAPI : DTS is not allowed for Package : com.development.prvak.docappwithotp
    W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
    W/VideoCapabilities: Unsupported mime video/wvc1
    W/VideoCapabilities: Unsupported mime video/x-ms-wmv
    W/VideoCapabilities: Unsupported mime video/x-ms-wmv7
    W/VideoCapabilities: Unsupported mime video/x-ms-wmv8
    D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 48 – 0, 0) vi=Rect(0, 48 – 0, 0) or=1
    W/VideoCapabilities: Unsupported mime video/mp43
    I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
    W/VideoCapabilities: Unsupported mime video/sorenson
    I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@9fe50a4 time:41293467
    V/ActivityThread: updateVisibility : ActivityRecord{d37c84e token=android.os.BinderProxy@3162eae {com.development.prvak.docappwithotp/com.development.prvak.docappwithotp.TestPayment}} show : false
    D/PGSDK: Page finished loading
    D/PGSDK: Progress dialog ended
    D/PGSDK: Came in onSaveInstanceState
    V/ActivityThread: updateVisibility : ActivityRecord{e573336 token=android.os.BinderProxy@9fe50a4 {com.development.prvak.docappwithotp/com.paytm.pgsdk.PaytmPGActivity}} show : false

  • Nishad
    I am getting this in debug console
  • Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home