Updated 24 September 2023
Paytm Payment Gateway flow and how it work :-
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.
Once you have completed the above configuration setup, then you can start using PG Service API’s.
Payment Transaction
Java
Where,
paramMap is the map containing request parameter names and their respective values. Please refer Example given in the next subsection.
Java
4. Create PaytmClient Object holding the Merchant Configuration. The syntax for creating PaytmMerchant Object is as follows:
Java
where,
inPassword is the Client side certificate password
inFileName is the Client side certificate file name. This file must be present inside “raw” folder.
Java
Where,
inOrder is the Object which is holding Order Information.
inMerchant is the Object which is holding Merchant Configuration.
inCertificate is the Object which is holding Certificate Information. Pass this as null if no client certificate is used by the merchant (as given above in the Prerequisites section)
Java
Where,
inCtxt is the Activity Context in which you are calling this method.
inbHideHeader is a boolean variable to hide or show Header Bar.
inbSendAllChecksumResponseParametersToPGServer is a boolean variable to determine whether to send all checksum response parameters to PG Server or not.
inPaymentTransactionCallback is a PaytmPaymentTransactionCallback instance to send callback messages back to merchant application.
Once Payment Transaction is done or some error occurs then the callback methods of
PaytmPaymentTransactionCallback will be called with a successful response or an error message.
Following is a sample implementation of the APIs.
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
8 comments
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$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 https://securegw-stage.paytm.in/theia/processTransaction
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 https://securegw-stage.paytm.in/theia/processTransaction
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
What is “Client Certificate and Encrypted password” ?
Where I can obtain these certificate and details:
PaytmClientCertificate Certificate = new PaytmClientCertificate(String, String inFileName);
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.