Post by ahaugas » Fri Dec 04, 2009 5:39 am

Hola a todos perdonad mi ingles y este es mi primer post estoy haciendo y terminando con el idioma español para la version 1.3.4 y me gustaria compartirlo despues si hay bastantes personas que lo necesiten tambien he creado el modulo tpv para la caixa y otros mediante servired estara pronto listo.

ah porfavor me podrian decir donde descargar este modulo de la pagina http://www.autolink.co.jp que es quick search gracias o algo my parecido

bueno espero comentarios sobre todo del español generico al 100% y del tpv
Hi all Forgive my English and this is my first post I'm doing and ending with the Spanish language for version 1.3.4 and I'd like to share it later if enough people in need also have created the module for caixa tpv and others through Servired will soon be ready.

oh please tell me where to download this module is http://www.autolink.co.jp page quick search through or something like my

I hope good comments on everything from generic to 100% Spanish and tpv

Newbie

Posts

Joined
Fri Dec 04, 2009 5:30 am


Post by ahaugas » Fri Dec 04, 2009 6:43 am

<?PHP

empty($Formulario) ?
ShowForm($Ds_Merchant_Amount,$Ds_Merchant_Currency,$prod) :
ShowError();
exit;
?>

<?PHP


function ShowError () {
echo "<html><head><title>Results</title></head><body><table width=100% height=50%><tr><td><p><h2><center>Compruebe que todos los datos del formulario son correctos!!</center></h2></p></td></tr></table></body></html>\n";
} # End of function ShowError

function ShowForm ($amount,$currency,$producto) {
// Posted data
global $HTTP_POST_VARS;

$url_tpvv='https://sis-t.sermepa.es:25443/sis/realizarPago';
$clave='asdasdasdasdasda345346457586';
$name='Comercio Pruebas';
$code='76563424756895708'8965976';
$terminal='123';
$order=date('ymdHis');
$amount='23454';
$currency='856';
$transactionType='0';
$urlMerchant='http://www.sermepa.es';
$producto='asdaaaasdddddddd';

// Now, print the HTML script
echo "<script language=JavaScript>
function calc() {
vent=window.open('','tpv','width=725,height=600,scrollbars=no,resizable=yes,status=yes,menubar=no,location=no');
document.forms[0].submit();}
</script>
<body bgcolor=white>
<form name=compra action=$url_tpvv method=post target=tpv>
<pre>
<table>
<tr><td>
<h2>Comercio de prueba.</h2>
</td></tr><tr><td>
Comercio: <font color=blue>$name</font>
</td></tr><tr><td>
FUC: <font color=blue>$code</font>
</td></tr><tr><td>
Terminal: <font color=blue>$terminal</font>
</td></tr><tr><td>
Pedido: <font color=blue>$order</font>
</td></tr><tr><td>
Producto: <font color=blue>$producto</font>
</td></tr><tr><td>
Importe: <font color=blue>$amount</font>
</td></tr><tr><td>
Tipo de Operacion: <font color=blue>$transactionType (Autorización)</font>
</td></tr><tr><td>
URL del comercio: <font color=blue>$urlMerchant</font>
</td></tr><tr><td>";

// Currency strings
if ($currency == "978") {
echo "Moneda: <font color=blue>Euros</font>";
}

echo "</td>
</tr><tr><td>
<input type=hidden name=Ds_Merchant_Amount value='$amount'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_Currency value='$currency'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_Order value='$order'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_MerchantCode value='$code'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_Terminal value='$terminal'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_TransactionType value='$transactionType'>
</td></tr><tr><td>
<input type=hidden name=Ds_Merchant_MerchantURL value='$urlMerchant'>
</td></tr><tr><td>";

// $signature=sha1_hex($amount,$order,$code,$currency,$clave);
$message = $amount.$order.$code.$currency.$transactionType.$urlMerchant.$clave;
$signature = strtoupper(sha1($message));

echo "<input type=hidden name=Ds_Merchant_MerchantSignature value='$signature'>
</td></tr>
</table>
<center><a href='javascript:calc()'><img src='/tpvirtual.jpg' border=0 ALT='TPV Virtual'></a></center>
</pre>
</form>
";
} # End of function ShowForm
?>

Newbie

Posts

Joined
Fri Dec 04, 2009 5:30 am


Post by cofran » Fri Dec 04, 2009 10:07 pm

quizas pueda interesarte el tpv que he creado, quizas haya que depuralo un poco mas de lo que esta, pero bueno como no existia nada en las contribuciones lo hice y apartir de allí se puede mejorar. Saludos

Descarga TPV Servired para Opencart

User avatar
Active Member

Posts

Joined
Thu Oct 01, 2009 7:37 am
Location - Córdoba, Argentina

Post by ahaugas » Tue Dec 08, 2009 3:17 am

oyes esta genial muchas gracias deveras funciona de maravilla

Newbie

Posts

Joined
Fri Dec 04, 2009 5:30 am


Post by RaNhA » Wed Dec 09, 2009 8:28 pm

He intentado instalar el modulo Servired pero al editarlo en la administracion me sale una pagina en blanco, sin errores ni nada.
pueden ayudarme?

New member

Posts

Joined
Wed Dec 09, 2009 7:34 pm

Post by cofran » Fri Dec 11, 2009 4:21 am

Muchas gracias ahaugas, RaNhA espero haber ayudado con el problema del Geo Zone que tenia la contri, ahora hay una revisión de la pasarela para solucionar esto. Saludos!

User avatar
Active Member

Posts

Joined
Thu Oct 01, 2009 7:37 am
Location - Córdoba, Argentina

Post by RaNhA » Mon Dec 14, 2009 9:47 pm

Si, ya carga la parte de administración.
Ahora lo que tengo es que modificarlo para que funcione con Ceca que es la pasarela que se va a utilizar.

Puedes guiarme para saber cómo modificarlo correctamente?

Gracias.

Un saludo.

New member

Posts

Joined
Wed Dec 09, 2009 7:34 pm
Who is online

Users browsing this forum: No registered users and 5 guests