Postado Outubro 18, 2015 9 anos Iae Galera, estou na reta final do meu servidor só falta configurar todo esquema de doação e tal, mas estou com dúvidas, vou postar SS's para tentar explicar direito e espero que alguém me ajude.Bom, meu Gesior já veio com um esquema de doação, onde tem o pagseguro e o depósito, mas não sei como esse sistema funciona eu queria saber se ele é automático, como que os players vão doar e principalmente como que configura ele, basicamente não sei nada sobre ele. Vou postar umas SS's do mesmo e o código.SS's:Pagseguro 1: Nessa parte é a escolha dos points, até aí tudo bem, fica até que bonito assim. Pagseguro 2:Aqui é após tentar comprar os points, eu não sei configurar para ir corretamente Depósito:Aqui é o depósito, não sei quais informações eu deveria colocar e onde eu às confirmaria para ver se estão certas. Então, gostaria de entender esse sistema, onde os jogadores confirmariam o pagseguro e o depósito?Script:Donate.php<?php $bonusPoints = $config['site']['bonusPoints']; if ($action == ""){ $main_content .=' <div id="ProgressBar"> <div id="Headline">Regras da Doação</div> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/vips/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image: url('.$layout_name.'/images/vips/stonebar-center.gif);"></div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/vips/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-0-green.gif"> <div class="StepText" style="font-weight: bold;">Regras da Doação</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-1-blue.gif"> <div class="StepText" style="font-weight: normal;">Método de Pagamento</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-2-blue.gif"> <div class="StepText" style="font-weight: normal;">Informações do Pedido</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-3-blue.gif"> <div class="StepText" style="font-weight: normal;">Confirmação</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight: normal;">Pedido Realizado</div> </div> </div> </div> </div> </div> </div> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Regras da Doação</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody><tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> Informamos aos jogadores e colaboradores que o <b>'.$config['server']['serverName'].' Server</b> não tem nenhum interesse financeiro. Toda a renda obtida é diretamente reaplicada para a manutenção do servidor - isto significa que ao fazer uma doação, você está garantindo a estabilidade e aumentando a qualidade do mesmo.</br></br> Os pontos que são repassados aos jogadores que efetuam as doações não representam nada mais além de nossa gratificação, isto é, você não está comprando pontos e sim recebendo uma gratificação simbólica (em formas de pontos) que te beneficie dentro do jogo; você poderá usar os seus pontos da maneira que desejar.</br></br> O espírito deste sistema é simples: com o intuito de nos aproximarmos dos jogadores e fazer com que vocês se sintam em casa, entendemos a sua doação como uma via de mão dupla no quesito credibilidade. Ao acreditar que vale a pena investir na manutenção do servidor, nós investimos em vocês creditando-os com pontos, que como já dito anteriormente, podem ser utilizados da maneira que mais os couber.</br></br> Confira nosso <a href="index.php?subtopic=shopsystem">'.$config['server']['serverName'].' Shop</a> e saiba como aproveitar os seus pontos da maneira mais proveitosa à sua situação.</br> <h3>Dúvidas Frequentes</h3></br> <b>Mas o que são premium Points?</b> Premium Points fazem parte do nosso sistema de doação, com eles você pode adquirir uma Premium Account, items ou algo mais que esteja disponível na nossa Loja Online ou in Game.</br></br> <b>Um premium point vale quanto?</b> A cada 1 real doado ao servidor nós daremos como agradecimento 1 premium point, juntando no mínimo 5 pontos você pode adquirir itens em nossa loja.</br></br> <b>Como efetuar a doação?</b> <br />Clique no botão <b>"Continue"</b> e siga todos os procedimentos para realizar sua doação. </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br /> <center> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <form action="?subtopic=donate&action=agreement" method="post"> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/vips/_sbutton_continue.gif" type="image"> </form> </div> </div> </td> </tr> </tbody> </table> </center>';} if ($action == "agreement"){ if(!$logged) { $link = "index.php?subtopic=donate&action=agreement"; include("login.php"); } else { $buy_name = stripslashes(urldecode($_POST['buy_name'])); $main_content .= ' <div id="ProgressBar"> <div id="Headline">Método de Pagamento</div> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/vips/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image: url('.$layout_name.'/images/vips/stonebar-center.gif);"></div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/vips/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-0-green.gif"> <div class="StepText" style="font-weight: normal;">Regras da Doação</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight: bold;">Metodo de Pagamento</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-2-blue.gif"> <div class="StepText" style="font-weight: normal;">Informações do Pedido</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-3-blue.gif"> <div class="StepText" style="font-weight: normal;">Confirmação</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight: normal;">Pedido Realizado</div> </div> </div> </div> </div> </div> </div> <br /><br /> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="100%"> <form action="index.php?subtopic=donate&action=tipo" method="POST"> <input type="hidden" name="char_name" value=""> <TR BGCOLOR="#505050"> <TD CLASS="white" COLSPAN="3"><b>Selecione um método de pagamento</b></TD> </TR>'; if ($config['site']['pagseguro'] == 1){ $main_content .=' <TR BGCOLOR=#D4C0A1> <TD>'; if ($bonusPoints > 1){ if ($bonusPoints <= 4){$main_content .='<b>[Bônus Points <font color="#FF0000">x'.$bonusPoints.'</font>]</b><br />';} if ($bonusPoints >= 5){$main_content .='<b>[Bônus Points <font color="#FF0000" style="font-size:18px;font-weight:bold;">Extreme x'.$bonusPoints.'!</font>]</b><br />';} } $main_content .='<input type="radio" name="method" value="1" /> PagSeguro - <b>Cartões de crédito <i>/</i> Boleto <i>/</i> Transferência bancária</b> </TD> </TR>';} if ($config['site']['paypal'] == 1){ $main_content .=' <TR BGCOLOR=#D4C0A1> <TD><input type="radio" name="method" value="2" /> Paypal - <b>Credit Cards/International Transactions</b></TD> </TR>';} if ($config['site']['caixa'] == 1){ $main_content .=' <TR BGCOLOR=#D4C0A1> <TD><input type="radio" name="method" value="3" /> Caixa - <b>Depósitos/DOCS/Transferencias Bancárias</b></TD> </TR>';} if ($config['site']['caixa'] == 0 && $config['site']['pagseguro'] == 0 && $config['site']['paypal'] == 0){ $main_content .=' <TR BGCOLOR="#D4C0A1" padding="10px"> <TD><b style="color: red; padding: 5px;">Nenhuma forma de pagamento disponível no momento.</b></TD> </TR>'; } $main_content .=' </TABLE> </tbody> </table> <br /> <table width="100%"> <tbody> <tr align="center"> <td>'; if ($config['site']['caixa'] == 1 || $config['site']['pagseguro'] == 1 || $config['site']['paypal'] == 1){ $main_content .=' <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <a href="javascript:void();" onclick=location.href="index.php?subtopic=donate&action=pag_form"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_continue.gif" type="image"> </div> </div> </a> </td> </tr> <tr> </tr> </tbody> </table>'; } $main_content .=' </td> </tr> </tbody> </table>'; } $_SESSION["nome"] = stripslashes(urldecode($_POST['method']));} elseif($action == 'tipo'){ if(!$logged){ $main_content .= ' <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS="white"><b>Erro</b></td> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD>Por favor, logue-se para que possa prosseguir com a operação.<br /><a href="index.php?subtopic=accountmanagement">Logue-se aqui</a>. Caso não tenha uma conta, <a href="index.php?subtopic=createaccount">Registre-se aqui</a>.</TD> </TR> </TABLE>'; }else{ $buy_tipo = stripslashes(urldecode($_POST['method'])); if($buy_tipo == 0) { $main_content .=' <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><b>Erro</b></td> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD><b style="color: red;">Nenhuma forma de pagamento foi selecionada.</b><br /><i>Selecione uma forma disponivel de pagamento para dar procedimento.</i></TD> </TR> </TABLE> <br /> <table width="100%"> <tbody> <tr align="center"> <td> <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr><td style="border: 0px none;"> <a href="javascript:void();" onclick=location.href="index.php?subtopic=donate&action=agreement"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/vips/_sbutton_back.gif" type="image"> </div> </div> </a> </td> </tr> <tr> </tr> </tbody> </table> </td> </tr> </tbody> </table> ';} if($buy_tipo == 1) { $main_content .= ' <div id="ProgressBar"> <div id="Headline">Informações do Pedido</div> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/vips/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image: url('.$layout_name.'/images/vips/stonebar-center.gif);"></div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/vips/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-0-green.gif"> <div class="StepText" style="font-weight: normal;">Regras da Doação</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight: normal;">Metodo de Pagamento</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight: bold;">Informações do Pedido</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-3-blue.gif"> <div class="StepText" style="font-weight: normal;">Confirmação</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight: normal;">Pedido Realizado</div> </div> </div> </div> </div> </div> </div> '; if ($bonusPoints >= 2){ $main_content .=' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Bônus Points!</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <table> <td>'; if ($bonusPoints >= 2){ $main_content .= '<div style="font-size: 20px; font-weight: bold; color: red;">Points x'.$bonusPoints.'</div>'; } $main_content .=' </td> </tr> </table> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br />'; } $_POST['item_quant_1']; $_POST['account_namev']; $_POST['emailv']; $_POST['character_namev']; $main_content .=' <form target="pagseguro" method="post" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml"> <input type="hidden" name="email_cobranca" value="' . $config['pagseguro']['email']. '"> <input type="hidden" name="tipo" value="CP"> <input type="hidden" name="moeda" value="BRL"> <input type="hidden" name="item_id_1" value="1"> <input type="hidden" name="item_descr_1" value="' . $config['pagseguro']['produtoNome'] . '"> <input type="hidden" name="item_frete_1" value="0"> <input type="hidden" name="item_quant_1" value="'.$item_valor_1.'"> <input type="hidden" name="item_peso_1" value="0"> <input type="hidden" name="ref_transacao" value="' . $account_logged->getCustomField("name").'-sv"> <input type="hidden" name="item_valor_1" value="100"> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Account Information</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <table> <td><b>Character Name:</b></td> <td> <select name="character_namev">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { $players_from_logged_acc->orderBy('name'); foreach($players_from_logged_acc as $player) { $main_content .= '<option>'.$player->getName().'</option>'; } } else { $main_content .= '</select><b style="color: red;" class="error">You don\'t have any character on your account.</b>'; } $main_content .=' </select> </td> </tr> <tr> <td><b>Account Name:</b></td> <td><input type="hidden" value="' . $account_logged->getName() . '" name="account_namev" />' . $account_logged->getCustomField("name") . '</td> </tr> <tr> <td><b>Email:</b></td> <td><input type="hidden" value="' . $account_logged->getCustomField("email") . '" name="emailv" />' . $account_logged->getCustomField("email") . '</td> </tr> </table> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br /> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Points to buy</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <table> <td width="10%"><b>Points:</b></td> <td> <input type="text" name="item_valor_1" value="" size="3" /> </td> </tr> </table> <br /> <small>Todos os pagamentos feito com forma de pagamento pagseguro são totalmente automatizados. São entregues os pontos assim que o pagseguro confirma a transferencia. <br /> <b style="color: red;">Nenhum membro da equipe tem a autorização e permissão para ter acesso ao painel de pontos do servidor. Todos os mesmos são adicionados por nossos sistemas inteligentes.</b></small> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br /> <table width="100%"> <tbody> <tr align="center"> <td> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/vips/_sbutton_continue.gif" type="image"> </div> </div> </form> </td> </tr> <tr> </tr> </tbody> </table> </td> </table> '; } if($buy_tipo == 3) { $main_content .=' <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS=white><B>Caixa Econômica</B></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td><pre>' . $config['site']['CaixaCont'] . '</pre></td> </tr> </TABLE> <br /> <center> <a href="javascript:void();" onclick=location.href="index.php?subtopic=latestnews"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/vips/_sbutton_continue.gif" type="image"> </div> </div> </a> </center>'; } if($buy_tipo == 2) { $main_content .=' <b>PayPal Shop System</b><br /><br /> The shop costs: <ul><li> 5 EUR (for 7 points)</li> <li> 10 EUR (for 15 points)</li><li> 20 EUR (for 32 points)</li></ul> <br /> <b>Here are the steps you need to make:</b> <br /> 1. A PayPal account with a required balance [5, 10 or 20 EUR] or a creditcard. <br /> 2. Fill in your account number. <br /> 3. Click on the Buy Now button or your creditcard brand. <br /> 4. Make a transaction. <br /> 5. After the transaction 6, 14 or 31 points will be automatically added to your account. <br /> 6. Go to Item shop and use your points <br /> <br /> <br /> <span style="color:red">If you recall the money, and your premium points can\'t be recalled your account will be deleted.</span> <br /> <br /> <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Paypal</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="'.$config['paypal']['email'].'"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="item_name" value="Premium points"> <b>Account name/login:</b> <input type="text" name="custom" value="'.$account_logged->getCustomField("name").'" style="padding: 5px;" autocomplete="off" readonly="readonly"> <select name="amount"> <option value="5.00">5 EUR</option> <option value="10.00">10 EUR</option> <option value="20.00">20 EUR</option> </select> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="currency_code" value="EUR"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="currency_code" value="EUR"> <input type="hidden" name="notify_url" value="'.$config['server']['url'].'/ipn.php"> <input type="hidden" name="return" value="'.$config['server']['url'].'"> <input type="hidden" name="rm" value="0"> <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest"> <input type="submit" value="Submit" style="padding: 5px;" /> </form></td> </tr> </TABLE> ';} } } if ($action == "confirmacao"){ $main_content .=' <div id="ProgressBar"> <div id="Headline">Confirmação</div> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/vips/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image: url('.$layout_name.'/images/vips/stonebar-center.gif);"></div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/vips/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-right-blue.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-0-green.gif"> <div class="StepText" style="font-weight: normal;">Regras da Doação</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight: normal;">Metodo de Pagamento</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight: normal;">Informações do Pedido</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-3-green.gif"> <div class="StepText" style="font-weight: bold;">Confirmação</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green-blue.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-4-blue.gif"> <div class="StepText" style="font-weight: normal;">Pedido Realizado</div> </div> </div> </div> </div> </div> </div> Após confirmar esta etapa, você automaticamente aceitará os <a href="index.php?subtopic=termsdonate" target="_blank">Termos de Compra</a> do servidor <b>'.$config ['server']['serverName'].'</b>. <u>Leia e esteja de acordo com os termos.</u><br /><br /> '; $pagseguro_query = $SQL->query("SELECT COUNT(*) FROM `pagsegurotransacoes` WHERE Referencia = '".$account_logged->getCustomField("name")."' AND StatusTransacao = 'Cancelado' LIMIT 1;")->fetch(); if ($pagseguro_query[0] >= 3){ $main_content .=' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Alert Message</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <font style="font-size: 16px; font-weight: bold;">Aviso!</font><br /> Você já possui <b>'.$pagseguro_query[0].'</b> fraude(s) de pagamento.<br />Caso tenha <b>4</b> ou mais será bloqueada sua account para efetuar pagamentos.<br /><br /> <small><i>Para maiores informações, entre em contato com o administrador.</i></small> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br /> ';} $main_content .=' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Points to buy</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%"><strong>Character Name:</strong></td> <td width="84%">'.$_POST['character_namev'].'</td> </tr> <tr> <td><strong>Account Name:</strong></td> <td>'.$_POST['account_namev'].'</td> </tr> <tr> <td><strong>Email:</strong></td> <td>'.$_POST['emailv'].'</td> </tr> <tr> <td><strong>Quant. Points:</strong></td> <td>'; $main_content .= $_POST['item_valor_1']; $main_content .='</td> </tr>'; if ($bonusPoints >= 2){ $main_content .=' <tr> <td><strong>Bônus Points:</strong></td> <td>'; $main_content .= '<b>x '.$bonusPoints.'</b>'; $main_content .='</td> </tr>';} $main_content .=' </table> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br /> <center> <table width="100%"> <tbody> <tr align="center"> <td> <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr><td style="border: 0px none;"> <a href="javascript:void();"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/vips/_sbutton_continue.gif" type="image"> </div> </div> </a> </form> </td> </tr> <tr> </tr> </tbody> </table> </td> </tr> </tbody> </table> </center> ';} if ($action == "realizado"){ $main_content .=' <div id="ProgressBar"> <div id="Headline">Pedido Realizado</div> <div id="MainContainer"> <div id="BackgroundContainer"> <img id="BackgroundContainerLeftEnd" src="'.$layout_name.'/images/vips/stonebar-left-end.gif"> <div id="BackgroundContainerCenter"> <div id="BackgroundContainerCenterImage" style="background-image: url('.$layout_name.'/images/vips/stonebar-center.gif);"></div> </div> <img id="BackgroundContainerRightEnd" src="'.$layout_name.'/images/vips/stonebar-right-end.gif"> </div> <img id="TubeLeftEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-left-green.gif"> <img id="TubeRightEnd" src="'.$layout_name.'/images/vips/progress-bar-tube-right-green.gif"> <div id="FirstStep" class="Steps"> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-0-green.gif"> <div class="StepText" style="font-weight: normal;">Regras da Doação</div> </div> </div> <div id="StepsContainer1"> <div id="StepsContainer2"> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-1-green.gif"> <div class="StepText" style="font-weight: normal;">Metodo de Pagamento</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-2-green.gif"> <div class="StepText" style="font-weight: normal;">Informações do Pedido</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-3-green.gif"> <div class="StepText" style="font-weight: normal;">Confirmação</div> </div> </div> <div class="Steps" style="width: 25%;"> <div class="TubeContainer"> <img class="Tube" src="'.$layout_name.'/images/vips/progress-bar-tube-green.gif"> </div> <div class="SingleStepContainer"> <img class="StepIcon" src="'.$layout_name.'/images/vips/progress-bar-icon-4-green.gif"> <div class="StepText" style="font-weight: bold;">Pedido Realizado</div> </div> </div> </div> </div> </div> </div> <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Pedido Realizado</div> <span class="CaptionVerticalRight" style="background-image: url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image: url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image: url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width: 100%;"> <tbody> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="8%" valign="top"><img src="images/account/account-status_green.gif" width="52" height="52" /></td> <td width="86%" align="left"><div style="font-weight:bold;font-size:18px;">Pedido realizado com sucesso!</div><br />Recebemos seu pagamento com sucesso, dentro de 5 minutos seus pontos serão creditados. Agradecemos por sua colaboração!<br /><small>Att, Yours Community</small></td> </tr> </table> <br /><br /> <b style="color: red">Não tente nenhum tipo de fraude, pois sua conta será penalizada!</b> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div> <br /> <center> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <form action="index.php?subtopic=history" method="post"> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" type="image"> </form> </div> </div> </td> </tr> </tbody> </table> </center>'; } ?> Oi
Postado Outubro 19, 2015 9 anos Você pode seguir esse tutorial aqui no Natanael.gesior pague seguro automaticoMesmo você utilizando códigos diferentes, este tutorial irá lhe dar uma base de como configurar seu Shop com PagueSeguro. Espero ter ajudado.
Postado Outubro 20, 2015 9 anos Autor Você pode seguir esse tutorial aqui no Natanael.gesior pague seguro automaticoMesmo você utilizando códigos diferentes, este tutorial irá lhe dar uma base de como configurar seu Shop com PagueSeguro. Espero ter ajudado. Acredito que essa dúvida eu consegui resolver, mas quais dados eu preciso pedir ao jogador para confirmar um depósito? Data, Nome e valor? Oi
Postado Outubro 21, 2015 9 anos O sistema faz a verificação automaticamente, ou seja, quando o pagamento é aprovado o PagSeguro retorna um "true" pro servidor dizendo pra ele liberar o produto(points). Mas em todo caso se você quiser confirmar com o jogador, peça pra ele o nome, valor e email e olha na sua database. Se as info que ele passou constarem lá, olhe a hora em que esses dados foram gravados (sua database), acesse sua conta no PagueSeguro e verifique se o dinheiro/transação realmente constam lá. (se o horário coincide) Espero ter ajudado, qualquer coisa estamos aí
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.