Getnet DocsGetnet Docs

SDK Methods Reference

This reference documents the public managers, methods, and data objects available in the Get Mini Android SDK.


1. Authentication & Merchant Configuration

Access features via RedCLSMerchantConfigurationManager. Most operations follow a pattern: instantiate a Data object for input and receive a Response object containing the results and a Code indicator (0 for success).

Standard & Transparent Login

Methods to authenticate the user or register the device for passwordless access.

MethodParameters / InputReturn TypeDescription
login()RedCLSLoginDataRedCLSLoginSsmResponseFull credential validation.
autoLogin()Context, RedCLSLoginTransAutoLoginDataRedCLSLoginTransLoginResponseRegisters device for passwordless entry.
loginWithoutUser()ContextRedCLSLoginTransLoginResponseLogin using registered device token.
addTerminal()Context, RedCLSLoginTransPetNuevoTerminalResponseDataLinks a new terminal to the device.
disableLoginTrans()ContextvoidRevokes the device registration.

Account & Profiles

Methods for profile queries and security maintenance.

MethodParameters / InputReturn TypeDescription
changePass()RedCLSChangePassDataRedCLSChangePassSsmResponseUpdates the merchant password.
peticionPerfilEntidad()RedCLSTerminalDataRedCLSPerfilResponseQueries enabled profile features.
recordarPassword()Context, user: StringBooleanTriggers a recovery email.

2. Shared Data Models

These core objects are reused across multiple managers to identify the merchant or represent a completed transaction.

RedCLSTerminalData (Identification Token)

The fundamental identification token required by every payment and query manager in the SDK.

FieldTypeMandatoryDescription
MerchantNameStringYesThe complete business name.
FucStringYesUnique Merchant Category Code (MCC/FUC).
TerminalStringYesUnique terminal identification number.
NSerieStringYesHardware serial number of the PIN pad.
TypeStringYesClassification (“1” for Virtual, “2” for PC).
CsbStringYesBank entity code.
CurrencyIntegerYesNumeric ISO currency code (e.g., 978).
CurrencyCodeStringYesAlphanumeric ISO currency code (“EUR”).

RedCLSTransactionData (Transaction Record)

The primary model representing a completed transaction, containing host details and receipt literals. Used for signatures, refunds, and query results.

FieldTypeDescription
typeStringOperation type (e.g., “PAGO”, “PREAUTORIZACIÓN”).
cardStringMasked card number (or panToken) for merchant receipt.
cardClientStringMasked card number for the customer copy of the receipt.
LiteralsListRaw text lines for the customer copy of the receipt.
LiteralsComercioListRaw text lines for the merchant copy of the receipt.
identifierRTSStringUnique transaction ID required for refunds and queries.
autorizationNumberStringHost-generated authorization approval code.
responseCodeStringStandard response code (“00” for approval).
TokenRecurrenteStringRecurring payment token (if requested).

3. Hardware Connectivity & Ready Status

Manage the link between the Android device and the PIN pad via RedCLSPinPadManager.

MethodParametersReturn TypeDescription
connectWithPinPad()NonevoidInitiates Bluetooth/USB link.
inicializarPinpad()NoneRedCLSInitPinpadResponseSyncs terminal and checks readiness.
isPinPadConnected()NoneBooleanChecks current connection status.
cerrarConexiones()NoneRedCLSCloseConnectionsResponsePerforms forced cleanup/disconnection.
getNumberOfPendingOfflineOperations()ContextintReturns count of stored offline payments.

4. Payment Operations (Card-Present)

Core financial operations handled by RedCLSPinPadManager. These methods interact with the hardware to read cards and process host requests.

MethodParametersReturn TypeDescription
operativaConTarjeta()RedCLSOperativeWithCardDataRedCLSOperativeWithCardResponseSales, Pre-auth, and Installments.
pagoConReferencia()ref: String, amount: double, tid: String?RedCLSOperativeWithCardResponseTokenized recurring payments.
devolucionSinOriginal()amount: Double, invoice: StringRedCLSRefundResponseCard-present refund (Manual/Banda).
lecturaTarjetaPrivada()NoneRedCLSReadPrivateCardResponseReads proprietary/private fuel cards.

Payment Response Hierarchy

The operativaConTarjeta method returns a nested structure to handle both technical errors and transaction results.

RedCLSOperativeWithCardResponse (Main Container)

FieldTypeDescription
statusintSuccess indicator (0 for OK, others for error).
ResponseStringServer response or error details.
msgKOStringUser-facing error message.
stackTraceKOStringTechnical stack trace for troubleshooting.
transactionDataRedCLSTransactionDataTransaction details if status is OK.

5. Detailed Data Models

Detailed field definitions for the input and output objects described above.

Authentication Objects

RedCLSLoginData (Input)

FieldTypeMandatoryDescription
userStringYesUnique merchant username.
passStringYesPassword for the account.

RedCLSLoginSsmResponse (Output)

FieldTypeDescription
merchantListListAuthorized merchants and their terminals (RedCLSMerchantData).
daysExpireIntegerDays until password expiration.
CodeIntegerResult code (0: Success).
DescStringResult description.

RedCLSLoginTransAutoLoginData (Input)

FieldTypeMandatoryDescription
merchantTerminalsListYesTerminals to authorize for “Login Transparente”.
loginDataRedCLSLoginDataYesCredentials from the initial login.
loginResponseRedCLSLoginSsmResponseYesResponse from the initial login.

RedCLSChangePassData (Input)

FieldTypeMandatoryDescription
OldpassStringYesCurrent password.
NewpassStringYesNew password (must meet security rules).

RedCLSPerfilResponse (Output)

FieldTypeDescription
esAlipayBooleanAlipay support enabled.
permitePreautoBooleanPre-authorizations enabled.
permiteDevolSinOriginBooleanRefunds without original ID enabled.
permiteDCCBooleanDynamic Currency Conversion enabled.

6. Advanced Payment Flows

Specialized managers for specific payment types or post-authorization actions.

Post-Authorization & Refunds

Managed by RedCLSRefundManager and RedCLSPreautorizationManager.

ManagerMethodReturn TypeDescription
RefundpeticionDevolucion()RedCLSRefundResponseStandard network-only refund.
Pre-authpeticionConfirmacion()RedCLSPreautorizationResponseCaptures (closes) a pre-auth.
Pre-authpeticionAnulacionPreautorizacion()StringCancels an open pre-auth.
Pre-authpeticionReemplazoPreautorizacion()StringUpdates pre-auth amount.

RedCLSRefundData (Input)

Mandatory constructor: RedCLSRefundData(terminalData, comercioOriginal, pedidoOriginal, importeDevolucion, fechaOriginal, numAutorizacion).

FieldTypeMandatoryDescription
terminalDataRedCLSTerminalDataYesAuthorized terminal token.
comercioOriginalStringYesFUC of the original sale.
pedidoOriginalStringYesOriginal order number.
importeDevolucionStringYesAmount as string (e.g., “1.00”).
fechaOriginalStringYesDate in yyyyMMdd format.
numAutorizacionStringYesOriginal approval code.

Specialized Payment Methods

Managers for alternative payment schemes and digital documentation.

ManagerMethodReturn TypeDescription
AlipaypeticionAlipay()RedCLSOperativeWithCardResponseProcesses QR-based Alipay.
SignatureenvioFirmaDigitalizada()RedCLSSignatureSendResponseUploads captured signature image.

RedCLSSignatureData (Input)

FieldTypeMandatoryDescription
terminalDataRedCLSTerminalDataYesAuthorized terminal token.
transactionDataRedCLSTransactionDataYesThe transaction to sign.
SignatureByteArrayYesImage payload (max 4999 bytes).
FormatIntYesImage format (use RedCLSConstantes.FORMAT_SIGNATURE_*).

7. Transaction History & Queries

Access historical data and session totals via RedCLSQueryManager.

MethodParametersReturn TypeDescription
peticionConsultaFecha()Context, RedCLSQueryDataRedCLSDateQueryResponseList operations by date range.
peticionConsultaRts()Context, RedCLSQueryDataRedCLSRtsQueryResponseSpecific transaction detail.
peticionConsultaRangoImportes()Context, RedCLSQueryRangeAmountDataRedCLSQueryRangeAmountResponseFilter by amount.
queryTicket()Context, RedCLSQueryTicketCloudDataRedCLSQueryTicketCloudResponseDetailed receipt literals.
cierreSesion()RedCLSTerminalDataRedCLSCloseSessionResponseDaily totals and closure count.

RedCLSQueryData (Input Filters)

FieldTypeDefault MandatoryDescription
terminalDataRedCLSTerminalDataYesAuthorized terminal token.
startDateStringYesyyyy-MM-dd HH:mm:ss
endDateStringYesyyyy-MM-dd HH:mm:ss
idRtsStringNoMatch specific RTS identifier.
operationTypeStringNoFilter by type (PAGO, DEVOLUCION).

8. Virtual Terminal (Paygold & Bizum)

Remote payment links and mobile-wallet operations via RedCLSVirtualManager.

MethodParametersReturn TypeDescription
peticionPaygold()RedCLSVirtualPaymentDataRedCLSVirtualPaymentResponseSends payment link (SMS/Email).
peticionDevolucionVirtual()RedCLSVirtualRefundDataRedCLSVirtualPaymentResponseRefund for virtual payments.
peticionConsultaFechaTPV_Virtual()Context, RedCLSVirtualQueryDataRedCLSDateVirtualQueryResponseVirtual history by date.
queryRTP()RedCLSVirtualPaymentDataRedCLSBizumRtpResponseChecks Bizum availability.
rtpRestPayment()RedCLSVirtualPaymentDataRedCLSVirtualPaymentResponseRequests Bizum payment.

RedCLSVirtualPaymentData (Input)

FieldTypeMandatoryDescription
AmountDoubleYesPayment amount.
OrderStringYesAlphanumeric order reference.
descriptionStringYesIdentifying text.
phoneStringNoMobile for Bizum/SMS.
eMailStringNoEmail for Paygold.

9. Utilities

General SDK maintenance and debugging.

Manager/ClassMethodReturn TypeDescription
LoggeractivateFileLogs()booleanEnables local debug file traces.