Файловый менеджер - Редактировать - /home/d46091/efoodlicence.com/config-test.php
Назад
<?php // $host = "localhost"; // $userName = "urb4ghvgjj7qo"; // $password = "freeDOM@611#"; // $dbName = "dbkkwmjknkbquk"; // $host = "localhost"; // $userName = "uqserzdbreujp"; // $password = "freeDOM@611#"; // $dbName = "dbafinsmeq921b"; $host = "localhost"; $userName = "d46091_efoodlicence"; $password = "freeDOM@611#"; $dbName = "d46091_efoodlicence"; // Create database connection $conn = new mysqli($host, $userName, $password, $dbName); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // Payment Gateway // $currentPaymentGateway = 'PAYU'; // Allowed ips $allowedIps = ['::1']; $userIp = $_SERVER['REMOTE_ADDR']; $currentPaymentGateway = 'PAYU'; if($currentPaymentGateway =='CASHFREE'){ $is_prod = true; $baseUrls = array( 'prod' => 'https://api.cashfree.com/pg/orders', //test url 'test' => 'https://sandbox.cashfree.com/pg/orders', //live url ); if ($is_prod) { $baseUrl = $baseUrls['prod']; $clientId = '800785f0e9c3b51582795f5f33587008'; //Use your live credential $clientSecret = 'cfsk_ma_prod_afc6626fb146a4a34540c95fc6015f13_9fd75428'; //Use your live credential } else { $baseUrl = $baseUrls['test']; $clientId = 'TEST35382372431d25f90eb0a47117328353'; $clientSecret = 'TEST366aace5bed9a9c4c5c94b82c74f4e358bbdbc17'; } } //cashfree integration end// //if want to integrate payu use this// if($currentPaymentGateway =='PAYU'){ define('PAYMENT_GATEWAY', 'PAYU'); define('PAYU_MID', 8422056); define('PAYU_CLIENT_ID', ''); define('PAYU_USERNAME', 'novaelite32@gmail.com'); define('PAYU_PASSWORD', 'freeDOM@611#'); define('PAYU_MERCHANT_KEY', '9GsYCk'); define('PAYU_MERCHANT_SALT', '3fK4CS7GF6Eq0OOsBLmSsLnEaBGbu8w9'); define('PAYU_BASE_URL', 'https://secure.payu.in/_payment'); define('PAYU_SURL', 'https://efoodlicence.com/payu/payu-success.php'); define('PAYU_FURL', 'https://efoodlicence.com/payu/payu-failure.php'); define('PAYU_SERVICE_PROVIDER', 'payu_paisa'); } error_reporting(E_ALL); ini_set('display_errors', 0); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка