Ir para conteúdo

Configurando O Pag Seguro


pocotozinho

Posts Recomendados

Bom!

Eu estou com o seguinte problema

Erro 100 - O E-MAIL não está no formato correto.

e da um erro de informação do vendedor incorretas.

 

o script que uso e esse abaixo \/

Alguem poderia me dizer onde ta o erro ? :thumbsupsmiley:

 

 

<?php

// Mude 'email@hotmail.com' para seu e-mail cadastrado no PagSeguro (o que ira receber o pagamento).

$email = "filipeoido@hotmail.com";

// Seu servidor aceita pagamentos por deposito? TRUE para SIM e FALSE para NAO (TRUE ou FALSE).

$deposito = TRUE;

// Se seu servidor aceita pagamentos por deposito, troque o texto abaixo por seus dados bancarios, informacoes adicionais, etc.

$txtdeposito = "Deposito!";

 

#####################################################################################

## Nao toque em nada daqui pra frente a nao ser que voce saiba o que esta fazendo! ##

#####################################################################################

 

if(!$logged){

$main_content = "Você precisa estar logado para acessar esta pagina!";

}else{

$main_content = "<center>Clique no botão <b>Continue</b> para ir ao próximo passo!<br>";

$main_content .= "<br><a href=\"?subtopic=buypoints&step=1\"><img src=\"http://i207.photobucket.com/albums/bb274/tpaolini/Blog/sbutton_continue.gif\"></a></center>";

$step = $_GET["step"];

if(isset($step) && $step == 1){

$players = $account_logged->getPlayersList();

$players->orderBy('name');

$main_content = "<br><div class=\"conteudo\" style=\"background-image:url(layouts/tibiacom/images/content/scroll.gif);\">";

$main_content .= "<form method=\"POST\" action=\"?subtopic=buypoints&step=2\">";

$main_content .= "<center><table cellpadding=\"5\" cellspacing=\"1\"><tr><td width=\"500px\" colspan=\"3\" bgcolor=\"#555555\"><font color=\"white\" size=\"3\"><b>Informações</b></font></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#F1E0C6\"><b>Nome do Personagem</b></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\"><select name=\"char\">";

foreach($players as $player){

$main_content .= "<option value=\"{$player->getName()}\">{$player->getName()}</option>";

}

$main_content .= "</td></tr></select><input type=\"hidden\" value=\"step1\" name=\"step1\">";

$main_content .= "</table><a href=\"?subtopic=buypoints\"><img src=\"http://tibia.avenger.ws/layouts/darkritual/images/buttons/sbutton_back.gif\"></a> <input type=\"image\" src=\"http://i207.photobucket.com/albums/bb274/tpaolini/Blog/sbutton_continue.gif\"></center></div></form>";

}

if(isset($step) && $step == 2){

if(!isset($_POST["step1"])){

$main_content = "Você precisa passar pelo passo 1 para acessar esta pagina!";

}else{

$char = $_POST["char"];

$main_content = "<br><div class=\"conteudo\" style=\"background-image:url(layouts/tibiacom/images/content/scroll.gif);\">";

$main_content .= "<form method=\"POST\" action=\"?subtopic=buypoints&step=3\">";

$main_content .= "<center><table cellpadding=\"5\" cellspacing=\"1\"><tr><td width=\"500px\" colspan=\"3\" bgcolor=\"#555555\"><font color=\"white\" size=\"3\"><b>Informações</b></font></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#F1E0C6\"><b>Quantidade de Pontos</b></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\"><select name=\"pontos\">";

$main_content .= "<option value=\"5\">5 Pontos</option>";

$main_content .= "<option value=\"10\">10 Pontos</option>";

$main_content .= "<option value=\"15\">15 Pontos</option>";

$main_content .= "<option value=\"20\">20 Pontos</option>";

$main_content .= "</td></tr></select><input type=\"hidden\" value=\"step2\" name=\"step2\"><input type=\"hidden\" value=\"$char\" name=\"char\">";

$main_content .= "</table><a href=\"?subtopic=buypoints\"><img src=\"http://tibia.avenger.ws/layouts/darkritual/images/buttons/sbutton_back.gif\"></a> <input type=\"image\" src=\"http://i207.photobucket.com/albums/bb274/tpaolini/Blog/sbutton_continue.gif\"></center></div></form>";

}

}

if(isset($step) && $step == 3){

if(!isset($_POST["step2"])){

$main_content = "Você precisa passar pelo passo 2 para acessar esta pagina!";

}else{

$char = $_POST["char"];

$pontos = $_POST["pontos"];

$main_content = "<form method=\"POST\" action=\"?subtopic=buypoints&step=4\">";

$main_content .= "<br><div class=\"conteudo\" style=\"background-image:url(layouts/tibiacom/images/content/scroll.gif);\">";

$main_content .= "<center><table cellpadding=\"5\" cellspacing=\"1\"><tr><td width=\"500px\" colspan=\"3\" bgcolor=\"#555555\"><font color=\"white\" size=\"3\"><b>Informações</b></font></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#F1E0C6\"><b>Forma de Pagamento</b></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\"><input type=\"radio\" name=\"forma\" value=\"pagseguro\"> PagSeguro</td></tr>";

$main_content .= $deposito == TRUE ? "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\"><input type=\"radio\" name=\"forma\" value=\"deposito\"> Depósito Bancário</td></tr>" : "";

$main_content .= "</td></tr></select><input type=\"hidden\" value=\"step3\" name=\"step3\"><input type=\"hidden\" value=\"$char\" name=\"char\"><input type=\"hidden\" value=\"$pontos\" name=\"pontos\">";

$main_content .= "</table><a href=\"?subtopic=buypoints\"><img src=\"http://tibia.avenger.ws/layouts/darkritual/images/buttons/sbutton_back.gif\"></a> <input type=\"image\" src=\"http://i207.photobucket.com/albums/bb274/tpaolini/Blog/sbutton_continue.gif\"></center></div></form>";

}

}

if(isset($step) && $step == 4){

if(!isset($_POST["step3"])){

$main_content = "Você precisa passar pelo passo 3 para acessar esta pagina!";

}else{

if(isset($_POST["forma"]) && $_POST["forma"] == "pagseguro"){

$id = $account_logged->getCustomField("id");

$char = $_POST["char"];

$pontos = $_POST["pontos"];

$forma = $_POST["forma"] == "pagseguro" ? "PagSeguro" : "Depósito";

$main_content = "<form target=\"pagseguro\" method=\"post\" action=\"https://pagseguro.uol.com.br/checkout/checkout.jhtml\">";

$main_content .= "<input type=\"hidden\" name=\"email_cobranca\" value=\"$email\">";

$main_content .= "<input type=\"hidden\" name=\"tipo\" value=\"CP\">";

$main_content .= "<input type=\"hidden\" name=\"moeda\" value=\"BRL\">";

$main_content .= "<input type=\"hidden\" name=\"item_id_1\" value=\"1\" />";

$main_content .= "<input type=\"hidden\" name=\"item_descr_1\" value=\"$char - $pontos Pontos\" />";

$main_content .= "<input type=\"hidden\" name=\"item_quant_1\" value=\"1\" />";

$main_content .= "<input type=\"hidden\" name=\"item_valor_1\" value=\"{$pontos}00\" />";

$main_content .= "<input type=\"hidden\" name=\"item_frete_1\" value=\"0\" />";

$main_content .= "<input type=\"hidden\" name=\"item_peso_1\" value=\"0\" />";

$main_content .= "<input type=\"hidden\" name=\"ref_transacao\" value=\"$id\">";

$main_content .= "<input type=\"hidden\" name=\"tipo_frete\" value=\"EN\">";

$main_content .= "<br><div class=\"conteudo\" style=\"background-image:url(layouts/tibiacom/images/content/scroll.gif);\">";

$main_content .= "<center><table cellpadding=\"5\" cellspacing=\"1\"><tr><td width=\"500px\" colspan=\"3\" bgcolor=\"#555555\"><font color=\"white\" size=\"3\"><b>Finalizar Pedido</b></font></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#F1E0C6\"><b>Opção</b></td><td width=\"250px\" bgcolor=\"#F1E0C6\"><b>Escolha</b></td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\">Personagem:</td><td width=\"250px\" bgcolor=\"#D4C0A1\">$char</td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\">Quantidade de Pontos:</td><td width=\"250px\" bgcolor=\"#D4C0A1\">$pontos</td></tr>";

$main_content .= "<tr><td width=\"250px\" bgcolor=\"#D4C0A1\">Forma de Pagamento:</td><td width=\"250px\" bgcolor=\"#D4C0A1\">$forma</td></tr>";

$main_content .= "</table><a href=\"?subtopic=buypoints\"><img src=\"http://tibia.avenger.ws/layouts/darkritual/images/buttons/sbutton_back.gif\"></a> <input type=\"image\" src=\"http://tibia.avenger.ws/layouts/darkritual/images/buttons/sbutton_submit.gif\"></center></div></form>";

}elseif(isset($_POST["forma"]) && $_POST["forma"] == "deposito"){

$main_content = $deposito == TRUE ? $txtdeposito : header("Location: ?subtopic=buypoints");

}

}

}

}

?>

Editado por pocotozinho
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...