Paytm Payment Gateway Integration in PHP step By step

Paytm Payment Gateway Integration in PHP step By step

In this Post We Will Explain About is Paytm Payment Gateway Integration in PHP step By step With Example and Demo.Welcome on Live24u.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Paytm Payment Gateway Integration in PHP with PAYTM KitExample

In this post we will show you Best way to implement paytm payment gateway integration in php example, hear for Paytm Payment Gateway Integration in PHP Source Codewith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

You can download source code and Demo from below link.




Step1:Free Download “Paytm Payment Gateway PHP Kit” – Github

First you need to download DownloadPaytm Payment Gateway PHP Kit from given link. You need to copy PaytmKit folder in document root of your server.

Also Read :   Core PHP Creating SEO Friendly URL using htaccess

Step2: Config file your change Data “Update Paytm Gateways Configuration”

config_paytm.php

Now simple open this folder to config_paytm.php open this file from the All the PaytmKit/lib path to get folder and update all this information the below change this constant values:

//Use (live24u.com) using PAYTM_ENVIRONMENT simple as <b>'PROD'</b> if you wanted any data to do transaction all the config in production data and environment else simple 'TEST' for doing all the config_paytm transaction in simple call to testing environment.
define('PAYTM_ENVIRONMENT', 'TEST');

//(live24u.com) using Change this constant's any data value with simple Merchant key and free downloaded from simple portal
define('PAYTM_MERCHANT_KEY', 'bKMfNxPPf_QdZppa');
//(live24u.com) using Change this all the constant's value data with simple MID set your (Like as a Merchant ID) received from your Paytm account
define('PAYTM_MERCHANT_MID', 'DIY98567855698586565656');
//(live24u.com) using Change this constant's data value with simple Website name and all the received from Paytm libs
define('PAYTM_MERCHANT_WEBSITE', 'DIYtestingweb');
//All of the Global varibles Set




Also Read :   PHP Add Days Hours Minutes and Seconds to Datetime

Steps3: Create Form with all the Required Field

Now you will simple create a static form with required all the fields with your true values. As you are simple using paytm devloped by Paytmkit, so you just simple need to pass any action (CRUD) to page name pgRedirect.php and it will simple handle all of, you don’t any need to all the worry as the simple libs Paytmkit data will handle all or everything more like verifying simple CheckSum data and other simple details.

 
<!--Live24u.com PAYTM Form with Integration Form-->
<form method="post" action="pgRedirect.php">
<!-- Please Enter ORDER_ID must required value -->
<input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value="<?php echo "ORDS" . rand(10000,99999999)?>">
<!-- CUST_ID Enter must-->
<input id="CUST_ID" tabindex="2" maxlength="12" size="12" name="CUST_ID" autocomplete="off" value="CUST001">
<!-- simple INDUSTRY_TYPE_ID enter with autocomplete-->
<input id="INDUSTRY_TYPE_ID" tabindex="4" maxlength="12" size="12" name="INDUSTRY_TYPE_ID" autocomplete="off" value="Retail">
<!-- Enter your channel Id here-->
<input id="CHANNEL_ID" tabindex="4" maxlength="12" size="12" name="CHANNEL_ID" autocomplete="off" value="WEB">
<!-- simple TXN_AMOUNT value Enter -->
<input title="TXN_AMOUNT" tabindex="10" type="text" name="TXN_AMOUNT" value="1">
<!-- CheckOut button put-->
<input value="CheckOut" type="submit">
</form>

You can download source code and Demo from below link.




Also Read :   jquery ajax call php function with parameters Example

Note : You can free download 100% sample “paytm payment files” form here

Download

I hope you have Got What is Paytm payment gateway integration example in PHP And how it works.I would Like to have FeadBack From My Blog(live24u.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(live24u.com) Are Most Always Welcome.

   

Add a Comment

Your email address will not be published.