B4A Library Paytm payment gateway Integration library


Licensed User
Here is demo creation of paytm library which is very easy to integrate and will help you to get money by all the payment methods by debit card ,credit card ,net banking. We can provide you help with integrating it and provide full support of taking it to the prod environment.
here is the demo video of the paytm integration in b4a

'#Region  Project Attributes
    #ApplicationLabel: Paytm Best
    #VersionCode: 1
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    Private pMap As Map
End Sub

Sub Globals
    Private pservice As Paytm
    Private cha As String = "WAP"
End Sub

Sub Activity_Create(FirstTime As Boolean)
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub PaytmEvent_someuierroroccurred(inErrorMessage As String)
    Log("B4A: paytm_someuierroroccurred")
End Sub
Sub PaytmEvent_ontransactionresponse(inResponse As Map)
    LogColor("B4A: paytm_ontransactionresponse BEGIN",Colors.Blue)
    For Each key In inResponse.Keys
    LogColor("B4A: paytm_ontransactionresponse END",Colors.Blue)
End Sub
Sub PaytmEvent_networknotavailable
    Log("B4A: paytm_networknotavailable")
End Sub
Sub PaytmEvent_clientauthenticationfailed( inErrorMessage As String)
    Log("B4A: paytm_clientauthenticationfailed")
End Sub
Sub PaytmEvent_onerrorloadingwebpage(iniErrorCode As Int ,  inErrorMessage As String,  inFailingUrl As String)
    Log("B4A: paytm_onerrorloadingwebpage")
End Sub
Sub PaytmEvent_onbackpressedcanceltransaction
    Log("B4A: paytm_onbackpressedcanceltransaction")
End Sub
Sub PaytmEvent_ontransactioncancel( inErrorMessage As String,inResponse As  Map )
    Log("B4A: paytm_ontransactioncancel")
End Sub

Sub paynow_Click
    'return checksum
    pMap.put( "MID" , "xxxxxxxxxxxxxxxxx")
    pMap.put( "ORDER_ID" , "342")
    pMap.put( "CUST_ID" , "cust1234")
    'pMap.put( "MOBILE_NO" , "7777777777")
    'pMap.put( "EMAIL" , "username@emailprovider.com")
    pMap.put( "CHANNEL_ID" , cha)
    pMap.put( "TXN_AMOUNT" , "100")
    pMap.put( "WEBSITE" , "WEBSTAGING")
    '    // This Is the staging value. Production value Is available in your dashboard
    pMap.put( "INDUSTRY_TYPE_ID" , "Retail")
    '    // This Is the staging value. Production value Is available in your dashboard
    pMap.put( "CALLBACK_URL", "https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp")
    Dim porder As Paytmorder
End Sub
We will provide you full code with library in just $20. It is the simple amount you can pay to get this amazing payment gateway. Hope You Will Like It...

we are open for comments and help you need so ping us at - madhav.agr95@gmail.com
Last edited:


Licensed User
And how to be sure that
1) CVV codes are not collected ?
2) That the lib and its example of usage really exist ?
3) What info is needed to setup\integrate the lib into an app ?


Licensed User
1. We are calling the paytm internal gateways which directly getting from paytm servers. So there is no possible way that cvv's collected by the app.

2. I can show you the demo by screenshare or else i can send demo code by making a video of it.

3. The basic information is we are calling paytm servers by which we need to generate checksums for secure and reliable payment. So this setup is needed in backend by making own server. Where we need to keep paytm checksum utility so that no one can tampered the transaction. Basically its making us safe from hackers


Licensed User
Why all info and example is not published here ? Now the post looks like empty promo post, without any useful info.