Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Get information - SDK and Point Smart - Mercado Pago Developers

Intelligent search powered by OpenAI 

Get information

Through the getInformation feature of the SmartInformationTools class, you recover detailed information about a device and the integration SDK. Access this feature through the MPManager object, as in the following example:

          
val informationTools = MPManager.smartInformationTools

informationTools.getInformation { response ->
   response.doIfSuccess { smartInformation ->
       // Manage information on the device and integration
       val deviceSerialNumber = smartInformation.smartDevice.serialNumber
       val brandName = smartInformation.smartDevice.brandName
       val modelName = smartInformation.smartDevice.modelName
       val paymentModuleVersion = smartInformation.smartDevice.paymentModuleVersion

       val sdkVersion = smartInformation.integration.nativeSdkVersion
   }.doIfError { error ->
       // Manage error in information request 
}

        
          
final SmartInformationTools smartInformationTools = MPManager.INSTANCE.getSmartInformationTools();

final Function1<MPResponse<SmartInformation>, Unit> callback = (final MPResponse<SmartInformation> response) -> {
 if (response.getStatus() == ResponseStatus.SUCCESS) {
   // Manage information on the device and integration
   final String deviceSerialNumber = response.getData().getSmartDevice().getSerialNumber();
   final String brandName = response.getData().getSmartDevice().getBrandName();
   final String modelName = response.getData().getSmartDevice().getModelName();
   final String paymentModuleVersion = response.getData().getSmartDevice().getPaymentModuleVersion();

   final String sdkVersion = response.getData().getIntegration().getNativeSdkVersion();
 } else {
   // Manage error in information request 
 }
 return Unit.INSTANCE;
};

smartInformationTools.getInformation(callback);

        
FieldDescription
smartDeviceDevice details.
integrationIntegration SDK details.
serialNumberPOS machine serial number.
brandNamePOS machine brand.
modelNamePOS machine model.
paymentModuleVersionVersion of the payment module of the SmartPOS.
nativeSdkVersionIntegration SDK version.