As you know Paytm Payment is deeply accurately-liked wallet system in india and Now days it growing each and every one fast, People uses Paytm vis–vis daily bases to recharge their mobile phones, DTH, bills etc Paytm is Indias largest mobile payments and commerce platform. It started as soon as online mobile recharge and financial credit payments and has an online marketplace today. In a rushed span of period, Paytm have scaled to on zenith of 230 Mn registered users. So if you are looking for a payment / donation solutions for your website , I viewpoint you use Paytm Payment Gateway to buy your hands on payments from your customers. Because It is easy to join upon your website. Paytm is easier as it is related as soon as many facilities which create the online transaction convenient for your website users. And they can easily securely pay you online for enthusiast benefits / products.

Also Read : How to delete All Files and Folder from Folder in php

Paytm Payment Gateway Integrate in PHP

Integration of Paytm Payment Gateway upon your website is quite easy you just have to download Paytm Web Sample Kit PHPAfter that follow under steps suggested by Paytm Web Kit.

Step-1: Copy PaytmKit photograph album in document root of your server (taking into consideration /var/www/html).
Step-2: Open config_paytm.php file from the PaytmKit/lib photograph album and update the deadened constant values

define('PAYTM_MERCHANT_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with Merchant key downloaded from portal
define('PAYTM_MERCHANT_MID', 'xxxxxxxxxxxxxxxxxxxxxxx'); //Change this constant's value with MID (Merchant ID) received from Paytm
define('PAYTM_MERCHANT_WEBSITE', 'xxxxxxx'); //Change this constant's value with Website name received from Paytm

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 state can be collected from Paytm team

Step-3: Now be alert step to create a sample html form as soon as required filed, You can along with locate demo html form in PaytmKit/TxnTest.php, You can kill this file and test your Paytm Payment Gateway Integrate is in leisure goings-on massive or not.

<form method="post" action="pgRedirect.php">
		<table border="1">
					<td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20"
						name="ORDER_ID" autocomplete="off"
						value="<?php echo  "ORDS" . rand(10000,99999999)?>">
					<td><label>CUSTID ::*</label></td>
					<td><input id="CUST_ID" tabindex="2" maxlength="12" size="12" name="CUST_ID" autocomplete="off" value="CUST001"></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>
					<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>
					<td><input title="TXN_AMOUNT" tabindex="10"
						type="text" name="TXN_AMOUNT"
				woring	<td></td>
					<td><input value="CheckOut" type="submit"	onclick=""></td>
		* - Mandatory Fields

See ascribed Paytm Api documentation for more recommendation. and know more approximately how Paytm payment gateway vivacious.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.