How to Integrate Paytm Payment Gateway in PHP
As you know Paytm is highly popular wallet system in india and Now days it growing very fast, People uses Paytm on daily bases to recharge their mobile phones, DTH, bills etc Paytm is India’s largest mobile payments and commerce platform. It started with online mobile recharge and bill payments and has an online marketplace today. In a short span of time, Paytm have scaled to over 230 Mn registered users. So if you are looking for a payment / donation solutions for your website , I suggest you use Paytm Payment Gateway to receive payments from your customers. Because It is easy to integrate on your website. Paytm is easier as it is linked with many services which make the online transaction convenient for your website users. And they can easily securely pay you online for user service / products.
Paytm Payment Gateway Integrate in PHP
Integration of Paytm Payment Gateway on your website is quite simple you just have to download Paytm_Web_Sample_Kit_PHPAfter that follow below steps suggested by Paytm Web Kit.
Step-1: Copy PaytmKit folder in document root of your server (like /var/www/html).
Step-2: Open config_paytm.php file from the PaytmKit/lib folder and update the below constant values
config_paytm.php
define('PAYTM_ENVIRONMENT', 'TEST'); define('PAYTM_MERCHANT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxx'); define('PAYTM_MERCHANT_MID', 'xxxxxxxxxxxxxxxxxxxxxxx'); define('PAYTM_MERCHANT_WEBSITE', 'xxxxxxx'); //Change this constant's value with Website name received from Paytm |
Where
PAYTM_MERCHANT_KEY – Can be downloaded from the Paytm portal. One time downloadable
PAYTM_MERCHANT_MID – MID (Merchant ID) can be collected from Paytm team
PAYTM_MERCHANT_WEBSITE – Website name can be collected from Paytm team
Step-3: Now final step to create a sample html form with required filed, You can also find demo html form in PaytmKit/TxnTest.php, You can execute this file and test your Paytm Payment Gateway Integrate is working fine or not.
<form method="post" action="pgRedirect.php"> <table border="1"> <tbody> <tr> <th>S.No</th> <th>Label</th> <th>Value</th> </tr> <tr> <td>1</td> <td><label>ORDER_ID::*</label></td> <td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value="<?php echo "ORDS" . rand(10000,99999999)?>"> </td> </tr> <tr> <td>2</td> <td><label>CUSTID ::*</label></td> <td><input id="CUST_ID" tabindex="2" maxlength="12" size="12" name="CUST_ID" autocomplete="off" value="CUST001"></td> </tr> <tr> <td>3</td> <td><label>INDUSTRY_TYPE_ID ::*</label></td> <td><input id="INDUSTRY_TYPE_ID" tabindex="4" maxlength="12" size="12" name="INDUSTRY_TYPE_ID" autocomplete="off" value="Retail"></td> </tr> <tr> <td>4</td> <td><label>Channel ::*</label></td> <td><input id="CHANNEL_ID" tabindex="4" maxlength="12" size="12" name="CHANNEL_ID" autocomplete="off" value="WEB"> woring </td> </tr> <tr> <td>5</td> <td><label>txnAmount*</label></td> <td><input title="TXN_AMOUNT" tabindex="10" type="text" name="TXN_AMOUNT" value="1"> </td> </tr> <tr> <td></td> woring <td></td> <td><input value="CheckOut" type="submit" onclick=""></td> </tr> </tbody> </table> * - Mandatory Fields </form> |
See official Paytm Api documentation for more information. and know more about how Paytm payment gateway working.
Following are the list of other hand picked top rated PHP Paytm Integration Script. You can use these popular PHP Paytm Integration Script to make your web application more awesome.
20+ PHP Paytm Integration Script
Following are the list of popular top rated hand picked PHP Paytm Integration Script.
- Paytm_Web_Sample_Kit_PHP:- Updated on 5 Oct 2018
- Paytm_App_Checksum_Kit_PHP:- Updated 9 hours ago
- laravel-paytm-wallet:- Integrate paytm wallet in your laravel application easily with this package. This package uses official Paytm PHP SDK’s.
- omnipay-paytm:- Paytm driver for the Omnipay PHP payment processing library
- paytmPhp:- Updated on 16 Feb
- paytm-php:- Integrate paytm in php
- Paytm_PHP:- An WIP paytm gateway
- Add-money-to-paytm-wallet:- How to add money to paytm wallet with help of PHP
- paytm_payment_verification_using_mail:- An unofficial Paytm script that verfies user PayTM transaction id and paid amount by comparing with mail to allow use…
- paytm-php:- Updated on 21 Jun 2018
- phpPaytmTest:- Updated on 16 Feb
- php_paytm:- Updated on 3 Apr 2017
- Paytm-Payments_Paytm_Web_Sample_Kit_PHP:- How to install the sample kit on a web server: Copy PaytmKit folder in document root of your server (like /var/www/ht…
- payment-using-paytm-php:- PayTM Payment Gateway Integration in Core PHP.
- Paytm_CakePHP_Encrypt:- Updated on 11 Aug 2016
- omnipay-paytm:- paytm driver for the Omnipay PHP payment processing library
- Paytm_App_Checksum_Kit_PHP:- Updated on 10 Feb 2016
- Paytm_Web_Sample_Kit_PHP-master:- Updated on 10 Jan 2018
- omnipay-paytm-gratification:- Paytm Gratification Service driver for the Omnipay PHP payment processing library
- php_scrapy_product_details:- six popular website flipkart,snapdeal,paytm,ebay,amazon,shopclues products details download
I Hope you liked Hand-picked list of PHP Paytm Integration Script, Don’t forget to Subscribe My Public Notebook for more useful Hand-picked PHP and MySql code examples, tutorials and articles.