How to Integrate Paytm Payment Gateway in PHP Using Paytm PHP SDK Full Tutorial For Beginners 2020

You are currently viewing How to Integrate Paytm Payment Gateway in PHP Using Paytm PHP SDK Full Tutorial For Beginners 2020
  • Post author:
  • Post category:PHP
  • Post comments:0 Comments

 

 

 

 

 

 

 

Get Started

 

 

In order to get started you need to create a simple index.php file inside your root directory and copy paste the following code

 

 

 

 

 

Now define a folder called as lib and create this file called as config_paytm.php and copy paste the code

 

 

 

 

 

Here you need to replace the values received from Paytm dashboard like this

 

 

 

 

 

And after that in the same directory create another file called as encdec_paytm.php and copy paste the code

 

 

 

 

 

 

 

And now in the root directory we will create pgRedirect.php file which gets called whenever we submit the form with the information inside the form. Copy paste the code shown below

 

 

 

 

 

 

Now in the root directory create another file called as pgResponse.php and copy paste the following code

 

 

 

 

 

 

 

Now in the same directory create another file called as TxnStatus.php and copy paste the following code shown below

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DOWNLOAD SOURCE CODE

 

 

 

Leave a Reply