×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Dorian Cuentas
Added: Oct 3, 2016 3:28 PM
Views: 5
Tags: no tags
creación parámetros
  1.     public DeviceInteractionResponse requestAction(
  2.             String monto, String tipoMoneda, String codigoCaja, String codigoTienda,
  3.             StringBuilder pinPadToPrintBuffer, StringBuilder pinPadToCajaBuffer) {
  4.         StringBuilder responseBuffer = new StringBuilder();
  5.         StringBuilder opParameters = new StringBuilder();
  6.         opParameters.append("90");
  7.         opParameters.append("A" + monto);//000000000500
  8.         opParameters.append(FIELD_SEPARATOR_STRING);
  9.         opParameters.append("B000000000000");//propina
  10.         opParameters.append(FIELD_SEPARATOR_STRING);
  11.         opParameters.append("C0");//0
  12.         opParameters.append(FIELD_SEPARATOR_STRING);
  13.         opParameters.append("D00000001");//00000001
  14.         opParameters.append(FIELD_SEPARATOR_STRING);
  15.         opParameters.append("E0000001");//0000001
  16.         int fiStartOperation = deviceDllBridge.fiStartOperation(opParameters.toString(), 5, responseBuffer);