PDA

View Full Version : |Desenvolvimento| MuOnline Payment Gateway by r00tme



djagripnos
13/05/2017, 07:05 AM
Estou desenvolvendo o gateway de pagamento MuOnline que será lançado assim que for concluído de graça. Somente neste fórum, é claro.

Principais fatos sobre o projeto

Primeiro de tudo ele será ATUALIZADO e totalmente funcional e livre

Sobre o Código
- Codificação Processural - Segurança
forte (Criptografado GET variáveis ​​e IN / OUT)
- Baseado em SQLSRV (Suporte PHP7)
- Muitos depuração comentários / marcas e explicações de código
- Bootstrap / front-end simples e sensível

sobre o módulo
- Fully Automated
- Histórico de Pagamentos
- registros detalhados
- Fácil configuração

* pode ser facilmente reformulado para trabalhar com qualquer web e / ou jogo

principal Configuração So Far

Main Config So Far


<?php

//Connection Credentials
$option['sql_user'] = "sa"; // Your SQL username used for connection here
$option['pc_name'] = "r00tme-pc"; // Your PC name here
$option['sql_db'] = "MuOnline"; // Your SQL database name used for connection here
$option['sql_pass'] = "111"; // Yuor SQL password used for connection here

//Web Session and Tables
$option['web_session'] = "user"; // Web Sessoin that is used in your website
$option['cr_table'] = "Memb_Credits"; // Table name that is used to store credits/wzcoins and so on
$option['cr_column'] = "credits"; // Column name that is used to store credits/wzcoins and so on
$option['cr_user'] = "memb___id"; // Column name that is used to select user

//***************//*************************//***********************************
// PayGol Settings
$option['paygol'] = 1; // 1=ON/0=OFF / Use this option to switch this module off

// PaymentWall Settings
$option['p_wall'] = 1; // 1=ON/0=OFF / Use this option to switch this module off

// Mobio Settings
$option['mobio'] = 1; // 1=ON/0=OFF / Use this option to switch this module off

// Paypal Settings
$option['paypal'] = 1; // 1=ON/0=OFF / Use this option to switch this module off

// E-Pay Settings
$option['epay'] = 1; // 1=ON/0=OFF / Use this option to switch this module off

// Fortumo Settings
$option['fortumo'] = 1; // 1=ON/0=OFF / Use this option to switch this module off
$option['row_p_page'] = 5; // How many rows from transactions table to be displayed on each page
[Only registered and activated users can see links]
$option['service_id'] = "3dc65d738d97dce5ccdbb351b73ba701"; // This is your service id and can be found in fortumo.com dashboard after adding new service
$option['secret_key'] = "99ad5e42d56909776e7071b4a79c2e40"; // This is your security can and can be found in fortumo.com dashboard after adding new service


//****SQL Connection********//*****************************//*******************
$connectionInfo = array("UID" => $option['sql_user'], "PWD" => $option['sql_pass'], "Database"=>$option['sql_db']);
$serverName = $option['pc_name'];
$conn = sqlsrv_connect($serverName, $connectionInfo);

?>



Fortumo Module


<script src="[Only registered and activated users can see links]" type="text/javascript"></script>


<?php
if (end(explode("/", $_SERVER['PHP_SELF'])) == basename(__FILE__)) {
header('[Only registered and activated users can see links] 403 Forbidden');
exit;
}

$pag = (isset($_GET['page']) && $_GET['page'] > 0) ? (int)$_GET['page'] : 1;
$page = (int)($pag);
$sql = sqlsrv_query($conn,"Select * from [MEMB_INFO] where [memb___id] = '".$_SESSION[$option['web_session']]."'",array());
$info = sqlsrv_fetch_array($sql);
$count_logs = sqlsrv_query($conn,"Select * from [Payment_Logs] where [account] = '".$_SESSION[$option['web_session']]."' and payment_method = 'Fortumo'",array(),array( "Scrollable" => 'static' ));
$max_pages = ceil(sqlsrv_num_rows($count_logs)/$option['row_p_page']);
$offset = ($option['row_p_page'] * ($page - 1));
$sql1 = sqlsrv_query($conn,pagination($offset, $option['row_p_page'], "[id],[account],[credits],[data],[date],[payment_method]", "Payment_Logs", "id desc", "id","account='".$_SESSION[$option['web_session']]."' and payment_method = 'Fortumo'"),array());

$mail = $info['mail_addr'];
$ques = $info['fpas_ques'];
$answ = $info['fpas_answ'];
$id = $info['memb_guid'];
$user = $_SESSION[$option['web_session']];

echo '
<div class="col-sm-3 col-sm-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
<a id="fmp-button" rel='.$option['service_id']."/".encode($user ."/".$mail."/".$ques."/".$answ ."/".ip()."/".$id,$option['encode_key']).'>
<img src="imgs/fortumos.png" width="160px;" style="cursor:pointer" alt="Mobile Payments by Fortumo" border="0" /></a>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="panel panel-default">
<div class=" panel-heading">
<h3 class=" panel-title">
<i class="fa fa-window-maximize" aria-hidden="true"></i>Payment History
</h3>
</div>
<div class="panel-body table table-responsive">
<table class="table table-striped table-hover ">
<tr style="background:#f5f5f5">
<td>#</td>
<td>Order Date</td>
<td>Credits Added</td>
<td style="text-align:center">Paid Amount</td>
<td style="text-align:center">SMS Number</td>
<td style="text-align:center">Payment IP</td>
<td style="text-align:center">Transsaction ID</td>
</tr>';
$i = 0;
while($row = sqlsrv_fetch_array($sql1)){
$i++;
$rank = $i+$offset;
$data = json_decode($row['data']);
echo '
<tr >
<td scope="row">'.$rank.'</td>
<td>'.date("d-M-y H:i:s",$row['date']).'</td>
<td style="text-align:right">'.number_format($row['credits']).'</td>
<td style="text-align:right">'.$data[2].'<img src="[Only registered and activated users can see links]'.$data[4].'.png" width="20px"/></td>
<td style="text-align:right">+'.$data[0].'('.$data[3].')</td>
<td style="text-align:right">'.$data[6].'</td>
<td style="text-align:right">'.$data[5].'</td>
</tr>
';
}
echo "</table></div></div>";
pagi($page,$max_pages,"?link=6");
?>



[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]


Eu não decidi o que os módulos de pagamento para incluir ainda, assim que todas as sugestões são muito bem-vindos.

O que terá certeza é:
PayPapal, E-Pay, PaymentGateway, PayGol, Mobio