Add Paytm Payment Gateway to your mobile app or website. Collect online payments from your customers using UPI, Debit/Credit Cards, 50+ NetBanking options and Paytm Wallet.
PaytmIS A PAYMENT PROCESS SYSTEM, I WILL INTEGRATE Paytm WITH WEBSITES BY USING WITH PHP
Just follow below steps:
Step1: First, we need to create an account at https://business.paytm.com/ and get our merchant ID and Secret Key.
Now we can start coding in our site to use the Paytm. First, we will configure the Paytm with test credentials to test our code.
Step 2. (filename – config.php)
<?php /*
– Use PAYTM_ENVIRONMENT as ‘PROD’ if you wanted to do transaction in production environment else ‘TEST’ for doing transaction in testing environment. – Change the value of PAYTM_MERCHANT_KEY constant with details received from Paytm. – Change the value of PAYTM_MERCHANT_MID constant with details received from Paytm. – Change the value of PAYTM_MERCHANT_WEBSITE constant with details received from Paytm. – Above details will be different for testing and production environment.
*/ define(‘PAYTM_ENVIRONMENT’, ‘TEST’); // PROD define(‘PAYTM_MERCHANT_KEY’, ‘**********’); //Change this constant’s value with Merchant key downloaded from portal define(‘PAYTM_MERCHANT_MID’, ‘**********’); //Change this constant’s value with MID (Merchant ID) received from Paytm define(‘PAYTM_MERCHANT_WEBSITE’, ‘**********’); //Change this constant’s value with Website name received from Paytm
Step 4. Here in form, we have set the action=”Redirect.php”, so we will create a new file with this name –
<?php header(“Pragma: no-cache”); header(“Cache-Control: no-cache”); header(“Expires: 0”); // following files need to be included require_once(“./lib/config_paytm.php”); require_once(“./lib/encdec_paytm.php”);
Add Paytm Payment Gateway to your mobile app or website. Collect online payments from your customers using UPI, Debit/Credit Cards, 50+ NetBanking options and Paytm Wallet.
Are you trying to find payment resolution for your website?
Paytm payment gateway will be a right selection for that. You can firmly settle for payment mistreatment with Paytm on-line payment.
Paytm is simpler because it is joined with several services that create the web transaction convenient for the customers.
This is one in every of the safest and secured payment gateways in Asian country for on-line dealing. So here during this tutorial you may learn the way to integrate Paytm payment entryway mistreatment PHP.
So currently we are going to cover up Paytm payment integration with PHP in simple steps:
Step 1: Download Paytm Payment Gateway PHP Kit
First you would like to download Paytm Payment gateway PHP Kit from given link. You need to copy PaytmKit folder in document root of your server.
PAYTMIS A PAYMENT PROCESS SYSTEM, I WILL INTEGRATE PAYTM WITH WEBSITES BY USING WITH PHP
Just follow below steps:
Step2: First, we need to create an account at https://business.paytm.com/ and get our merchant ID and Secret Key.
Now we can start coding in our site to use the Paytm. First, we will configure the Paytm with test credentials to test our code.
Step 3. (filename – config.php)
<?php /*
– Use PAYTM_ENVIRONMENT as ‘PROD’ if you wanted to do transaction in production environment else ‘TEST’ for doing transaction in testing environment. – Change the value of PAYTM_MERCHANT_KEY constant with details received from Paytm. – Change the value of PAYTM_MERCHANT_MID constant with details received from Paytm. – Change the value of PAYTM_MERCHANT_WEBSITE constant with details received from Paytm. – Above details will be different for testing and production environment.
*/ define(‘PAYTM_ENVIRONMENT’, ‘TEST’); // PROD define(‘PAYTM_MERCHANT_KEY’, ‘**********’); //Change this constant’s value with Merchant key downloaded from portal define(‘PAYTM_MERCHANT_MID’, ‘**********’); //Change this constant’s value with MID (Merchant ID) received from Paytm define(‘PAYTM_MERCHANT_WEBSITE’, ‘**********’); //Change this constant’s value with Website name received from Paytm
Step 5. Here in form, we have set the action=”Redirect.php”, so we will create a new file with this name
<?php header(“Pragma: no-cache”); header(“Cache-Control: no-cache”); header(“Expires: 0”); // following files need to be included require_once(“./lib/config_paytm.php”); require_once(“./lib/encdec_paytm.php”);
I am an experienced PHP web developer and completed several web development projects successfully using WordPress , Woocommerce, Html5, CSS3, Bootstrap, JavaScript, JQuery, PHP, Codeigniter, and Mysqli.