Concluindo a compra... aguarde um instante.
<?php
$_email = $_POST['_email'];
$_lig_atu = $_POST['lig_atu'];
$_valortt = $_POST['_valortt'];
$_numvit = $_POST['num_vit'];
if( !empty($_email) && !empty($_lig_atu) && !empty($_valortt) && !empty($_numvit) ){
$nome_remetente = "Nome do site";
$email_remetente = "zzz";
$email_destino = "zzz";
$assunto_email = "Novo email enviado pelo site";
$corpo = '
<html><head></head><body>
<strong>E-mail:</strong> '.$_email.'
<br />--------------<br />
<strong>Liga atual:</strong> '.$_lig_atu.'
<br />
<strong>Divisão atual:</strong> '.$_div_atu.'
<br />--------------<br />
<strong>Liga desejada:</strong> '.$_lig_des.'
<br />
<strong>Divisão desejada:</strong> '.$_div_des.'
<br />--------------<br />
<strong>Vitorias:</strong> '.$_numvit.'
<br />--------------<br />
<strong>Valor:</strong> R$ '.$_valortt.'
</body></html>
';
$headers = "MIME-Version: 1.1\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$nome_remetente." <".$email_remetente.">\n";
$headers .= "Return-Path: ".$email_remetente."\n";
$s_email = mail($email_destino, $assunto_email, $corpo, $headers);
?>
<form name="psform" style="display: none;" method="post" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml">
<input type="hidden" name="email_cobranca" value="zzz" />
<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" id="item_descr_1" name="item_descr_1" value="Compra cod. <?=date('YmdHis')?>" />
<input id="item_quant_1" type="hidden" name="item_quant_1" value="1" />
<input type="hidden" id="item_valor_1" name="item_valor_1" value="<?=$_valortt?>" />
<input type="hidden" name="item_frete_1" value="000" />
<input type="hidden" name="ref_transacao" id="ref_transacao" value="<?=date('YmdHis')?>" />
</form>
<script>
window.onload = function(){
var i = document.psform;
i.action = "https://pagseguro.uol.com.br/checkout/checkout.jhtml";
i.submit();
}
</script>
<?php
}
?>
I was wanting to make an integration with the paid or paypal market similar to this one of the pagseguro Can anyone tell me if I have it?