Getnet DocsGetnet Docs

SDK Methods Reference

The Get Mini framework is organized into specialized modules. This reference documents the primary classes and methods used for payment processing, device management, and transaction queries.

Global Configuration (CommonUtils)

The CommonUtils class handles global settings that must be configured before any other SDK interaction.

MethodParametersDescription
setEntornoString (e.g., “int”, “real”)Sets the execution environment (Development, Integration, Certification, or Real).
setAppLicenseStringConfigures the application license provided by Get Mini.

Hardware & Connection (RedsysPinpadManager)

This class manages the Bluetooth connection and real-time interaction with the PIN pad hardware.

findBluetoothDevices

Scans for PIN pad accessories paired with the iOS system. Results are returned via the onProcessOK delegate callback as an array of EAAccessory.

connectAndConfigureDevice

Establishes a connection to a specific device and performs the mandatory terminal configuration (key injection).

ParameterTypeDescription
deviceid (EAAccessory)The accessory object discovered via findBluetoothDevices.
merchanMerchanDTOObject containing FUC, Terminal, and Merchant Key.
withDelegateid<RedsysBTPinpadInitDelegate>Delegate to monitor the initialization progress.

payWithPinpadBluetooth

The primary method for processing card-present transactions, including Sales and Pre-authorizations.

ParameterTypeDescription
deviceidThe connected hardware accessory.
merchanMerchanDTOMerchant credentials.
configPinpadConfigThe configuration object returned by onInitFinished.
andPagoDTOPagoDTOTransaction details (Amount, Currency, and Type).
withDelegateid<RedsysBTPinpadPaymentDelegate>Delegate to receive payment results and handle DCC feedback.

Gateway Operations (RedsysTransactionManager)

This class manages Web Service calls for operations that may or may not require card presence.

peticionDevolucion

Processes a standard refund linked to a previous transaction.

ParameterTypeDescription
dictDevolucionEnvioDevolucionDTOContains the original operation and the refund amount.
withBlockCompletionBlockReturns a DevolucionResponseDTO or an NSError.

peticionConsultaFechaPagina

Used for transaction history queries and Confirmations of pre-authorized payments.

ParameterTypeDescription
dictConsultaConsultaFechasDTOSearch parameters (Date range, Terminal, Page).
conValoresNSDictionaryOptional filters (e.g., setTipoOperacion:@"CONFIRMACION").
withBlockCompletionBlockReturns a ListaOperacionesDTO.

peticionPagoPorReferencia

Processes a card-on-file (recurring) payment using a previously obtained token.

peticionPaygold

Generates a payment link sent via SMS or Email to the customer.

Key Data Transfer Objects (DTOs)

DTOPurpose
PagoDTODefines the amount (in cents), currency, and type (PAGO or PREAUTORIZACION).
MerchanDTOHouses merchant credentials for PIN pad initialization.
RespuestaTransaccionDTOReturned after payments; contains the identificadorRTS and literales.
OperacionDTORepresents a single transaction in a history list, used for issuing refunds.

Implementation Notes

  1. Threading: Most methods use block-based callbacks that execute asynchronously. Ensure UI updates are performed on the main thread.
  2. DTO Precision: Amounts are typically handled as integers (cents) in PinpadManager methods but as strings (e.g., “10.00”) in TransactionManager refund methods. Refer to specific guides for formatting.
  3. Permissions: Use PerfilComercioManager to verify active terminal features before calling transaction methods.