Skip to content

Instantly share code, notes, and snippets.

@hpneo
Created March 10, 2012 18:44
Show Gist options
  • Save hpneo/2012452 to your computer and use it in GitHub Desktop.
Save hpneo/2012452 to your computer and use it in GitHub Desktop.
<?php
include('vpos_plugin.php');
$array_send = array();
$array_get = array();
$array_send['acquirerId'] = 117;
$array_send['commerceId'] = 5654;
$array_send['purchaseAmount'] = 100;
$array_send['purchaseCurrencyCode'] = 604;
$array_send['purchaseOperationNumber'] = "OP001";
$array_send['billingAddress'] = "Av. Mansiche 1283";
$array_send['billingCity'] = "Trujillo";
$array_send['billingState'] = "Trujillo";
$array_send['billingCountry'] = "PE";
$array_send['billingZIP'] = "01";
$array_send['billingPhone'] = "202096";
$array_send['billingEMail'] = "hpneo@hotmail.com";
$array_send['billingFirstName'] = "Gustavo";
$array_send['billingLastName'] = "Leon";
$array_send['language'] = 'SP';
$array_get['XMLREQ'] = "";
$array_get['DIGITALSIGN'] = "";
$array_get['SESSIONKEY'] = "";
$vector = "d412589745df36fa";
$llavePublicaCifrado = "file:///var/www/vpos/ALIGNET.TESTING.PHP.CRYPTO.PUBLIC.txt";
$llavePrivadaFirma = "file:///var/www/vpos/BULEVAR.TESTING.FIRMA.PRIVADA.pem";
$response = VPOSSend($array_send,$array_get,$llavePublicaCifrado,$llavePrivadaFirma,$vector);
?>
<!DOCTYPE html>
<html>
<head>
<title>VPOS</title>
</head>
<body>
<form name="frmSolicitudPago" action="https://preprod.verifika.com/VPOS/MM/transactionStart20.do" method="post">
<input type="hidden" name="IDACQUIRER" value="<?php echo $array_send['acquirerId']; ?>" />
<input type="hidden" name="IDCOMMERCE" value="<?php echo $array_send['commerceId']; ?>" />
<input type="hidden" name="XMLREQ" value="<?php echo $array_get['XMLREQ']; ?>" />
<input type="hidden" name="DIGITALSIGN" value="<?php echo $array_get['DIGITALSIGN']; ?>" />
<input type="hidden" name="SESSIONKEY" value="<?php echo $array_get['SESSIONKEY']; ?>" />
<input type="submit" value="Enviar" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment