0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.94.180


Current Path : /var/www/html/pgadm/Paytm/lib/
Upload File :
Current File : /var/www/html/pgadm/Paytm/lib/config_paytm.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', 'PROD'); // PROD
// define('PAYTM_MERCHANT_KEY', 'a7eKqVQ8PTTJ1GNo'); //Change this constant's value with Merchant key downloaded from portal
// define('PAYTM_MERCHANT_MID', 'Bengal37636018916631'); //Change this constant's value with MID (Merchant ID) received from Paytm
// define('PAYTM_MERCHANT_WEBSITE', 'Bengal'); //Change this constant's value with Website name received from Paytm



// $servername = "97.74.228.93";
// $username = "logisys3_logu";
// $password = "Logisys@2106";
// $databse = 'logisys3_comexam';

// $conn = new  mysqli($servername,$username,$password,$databse);
// if(!$conn) 
// {
// 	die("Connection failed: " . mysqli_connect_error());
// }


// $get_data = "select * from maspg where fbank = 'Paytm' and FENTTYPE = 'exam' and funivcode = '{$funivcode}'";

// $result=$conn->query($get_data); 

// if (mysqli_num_rows($result) > 0) 
// {
// 	while($row = mysqli_fetch_assoc($result)) 
// 	{
// 		$key    =    $row['fkey'];
// 		$mid    =    $row['fmid'];
// 		$fworkingid =    $row['fworkingid'];
// 		$fmode      =    $row['fmode'];
// 		$freturnurl =    $row['freturnurl'];
// 	}
// }

define('PAYTM_ENVIRONMENT', "PROD"); // PROD
// define('PAYTM_MERCHANT_KEY', '&!ul9@kxgRDfdm7X'); //Change this constant's value with Merchant key downloaded from portal
// define('PAYTM_MERCHANT_MID', 'Unicla48931199835971'); //Change this constant's value with MID (Merchant ID) received from Paytm
// define('PAYTM_MERCHANT_WEBSITE', "WEBSTAGING");

$PAYTM_DOMAIN = "pguat.paytm.com";
if (PAYTM_ENVIRONMENT == 'PROD') {
	$PAYTM_DOMAIN = 'secure.paytm.in';
}

/*define('PAYTM_REFUND_URL', 'https://'.$PAYTM_DOMAIN.'/oltp/HANDLER_INTERNAL/REFUND');
define('PAYTM_STATUS_QUERY_URL', 'https://'.$PAYTM_DOMAIN.'/oltp/HANDLER_INTERNAL/TXNSTATUS');
define('PAYTM_STATUS_QUERY_NEW_URL', 'https://'.$PAYTM_DOMAIN.'/oltp/HANDLER_INTERNAL/getTxnStatus');
define('PAYTM_TXN_URL', 'https://'.$PAYTM_DOMAIN.'/oltp-web/processTransaction');*/

$PAYTM_STATUS_QUERY_NEW_URL='https://securegw-stage.paytm.in/merchant-status/getTxnStatus';
$PAYTM_TXN_URL='https://securegw-stage.paytm.in/theia/processTransaction';
if (PAYTM_ENVIRONMENT == 'PROD') {
	$PAYTM_STATUS_QUERY_NEW_URL='https://securegw.paytm.in/merchant-status/getTxnStatus';
	$PAYTM_TXN_URL='https://securegw.paytm.in/theia/processTransaction';
}
define('PAYTM_REFUND_URL', '');
define('PAYTM_STATUS_QUERY_URL', $PAYTM_STATUS_QUERY_NEW_URL);
define('PAYTM_STATUS_QUERY_NEW_URL', $PAYTM_STATUS_QUERY_NEW_URL);
define('PAYTM_TXN_URL', $PAYTM_TXN_URL);

?>