Request Parameters

This reference lists the main public functions and parameters exposed by the Get Central / TpvpcImplantado middleware, using the parameter names and function signatures documented for TPVPC Implantado.

The tables below reflect the invocation model used by the library. Parameters are listed using the names that appear in the TPVPC Implantado documentation.

information icon
In the web/JavaScript integration path, the same underlying library functions can be executed through execFnDll, passing the original function name and arguments to the local TPVPC service.

Initialization and Lifecycle Functions

These functions are used to initialize and manage the middleware lifecycle.

fnDllIniTpvpcLatente

Initializes the middleware and opens communication with the PIN Pad. This function must be called once when the application starts.
Function signature (C#):
int fnDllIniTpvpcLatente(string cComercio, string cTerminal, string cClaveFirma, string cConfPuerto, string cVersion);
ParameterTypeRequiredDescription
cComercioStringYesMerchant identifier (FUC) provided by the acquiring entity.
cTerminalStringYesTerminal identifier assigned to the PIN Pad.
cClaveFirmaStringYesSignature key associated with the merchant and terminal.
cConfPuertoStringNoOptional port configuration.
cVersionStringNoOptional protocol version ("5.1", "6.1", or "8.1").
Important: In TPVPC Implantado, if cConfPuerto is specified, cVersion must also be specified. If cVersion is specified, cConfPuerto must also be specified.
Return value: 0 if initialization succeeds. Any other value indicates a library-level error.

fnDllParaTpvpcLatente

Stops communication and releases all internal resources.

Function signature:
int fnDllParaTpvpcLatente();
This function has no input parameters.

Payment and Financial Operations

All financial operations are executed through exported functions that receive typed parameters and return an XML response buffer. A return value of 0 only indicates that the operation was processed; authorization must always be validated from the XML.

fnDllOperPinPad

Executes a PAGO or PREAUTORIZACION using a physical PIN Pad.
Function signature:
int fnDllOperPinPad(string cImporte, string cFactura, string cTipoOper, StringBuilder cXMLResp, int iTamMaxResp);
ParameterTypeRequiredDescription
cImporteStringYesAmount in format XXXXXXXXX.XX.
cFacturaStringYesMerchant operation reference.
cTipoOperStringYesOperation type: "PAGO" or "PREAUTORIZACION".
cXMLRespStringBufferYesOutput buffer that receives the XML response.
iTamMaxRespIntegerYesMaximum buffer size (recommended: at least 8192).

fnDllOperManualExt

Executes a PAGO or PREAUTORIZACION using manual card data entry.
Function signature:
int fnDllOperManualExt(string cTarjeta, string cCaducidad, string cCVC2, string cImporte, string cFactura, string cTipoOper, StringBuilder cXMLResp, int iTamMaxResp);
ParameterTypeRequiredDescription
cTarjetaStringYesCard number (15–19 digits).
cCaducidadStringYesExpiration date in AAMM format.
cCVC2StringConditionalSecurity code, required depending on merchant configuration.
cImporteStringYesAmount in format XXXXXXXXX.XX.
cFacturaStringYesMerchant operation reference.
cTipoOperStringYes"PAGO" or "PREAUTORIZACION".
cXMLRespStringBufferYesOutput XML buffer.
iTamMaxRespIntegerYesMaximum buffer size.

Confirmation and Refund Operations

The current TPVPC Implantado documentation describes confirmations and referenced refunds through a single function.

fnDllOperComContable

Executes a CONFIRMACION or DEVOLUCION using the original transaction identifiers.
Function signature:
int fnDllOperComContable(string cNumPedido, string cRTSOriginal, string cImporte, string cFactura, string cTipoOper, StringBuilder cXMLResp, int iTamMaxResp);
ParameterTypeRequiredDescription
cNumPedidoStringYesOrder number (pedido) of the original transaction.
cRTSOriginalStringNoRTS identifier of the original transaction. Recommended when available.
cImporteStringYesFinal amount to capture or refund amount, in XXXXXXXXX.XX format.
cFacturaStringYesNew merchant reference for the confirmation or refund.
cTipoOperStringYes"CONFIRMACION" or "DEVOLUCION".
cXMLRespStringBufferYesOutput XML buffer.
iTamMaxRespIntegerYesMaximum buffer size.

Recurring Payments

Recurring payment flows use the following functions.

fnDllActivaRecurrente

Activates recurring mode for the current library session.

Function signature:
void fnDllActivaRecurrente();

fnDllDesActivaRecurrente

Deactivates recurring mode for the current library session.

Function signature:
void fnDllDesActivaRecurrente();

fnDllOperRecurrente

Executes a payment using a previously generated recurring token.

Function signature:
int fnDllOperRecurrente(string cTokenRec, string cImporte, string cFactura, StringBuilder cXMLResp, int iTamMaxResp);
ParameterTypeRequiredDescription
cTokenRecStringYesToken generated in a previous recurring payment.
cImporteStringYesAmount in format XXXXXXXXX.XX.
cFacturaStringYesMerchant operation reference.
cXMLRespStringBufferYesOutput XML buffer.
iTamMaxRespIntegerYesMaximum buffer size.
information icon
Each time the library is initialized with fnDllIniTpvpcLatente, recurring mode is automatically deactivated and must be activated again if needed.

Receipt Generation

fnDllGenerateReceipt

Generates a customer or merchant receipt from the XML returned by a previous operation.

Function signature (C#):
void fnDllGenerateReceipt(string cXMLResp, StringBuilder base64Receipt, int iTamMaxbase64Receipt, string nombreComercio, bool bIsClient);
ParameterTypeRequiredDescription
cXMLRespStringYesXML returned by a previous operation.
base64ReceiptStringBufferYesOutput buffer containing the receipt PDF in Base64.
iTamMaxbase64ReceiptIntegerYesOutput buffer size.
nombreComercioStringYesMerchant name to include on the receipt.
bIsClientBooleanYestrue for the customer receipt, false for the merchant receipt.

Communication Check

fnDllCheckStatus

Checks the communication state of the terminal and server with low operational cost.

Function signature:
int fnDllCheckStatus();
Return valueMeaning
0Terminal and server communications are working correctly.
-1Library not initialized.
-2Communication error with the terminal.
-3Communication error with the server.

Authorization Validation

All financial operations are considered AUTHORIZED only if the XML response contains:
xml
<estado>F</estado> <resultado>Autorizada</resultado>
Any other combination must be treated as DENIED, regardless of numeric codes or library return values.