> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/merchant-tokenization/es/integracion-del-sdk/android-api/migrate-from-2.x-to-3.0.md).

# Migrar de 2.x a 3.0

A partir de Thales SDK 3.0.0, varias API públicas se han simplificado.

## Clases y API renombradas <a href="#renamed-classes-and-apis" id="renamed-classes-and-apis"></a>

* [PendingBindingSession.java](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/2.0.0/com/thalesgroup/tmgsdk/PendingBindingSession.html) a [IDVSession.java](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/IDVSession.html).
* [PendingBindingSession.submitIdvMethod()](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/2.0.0/com/thalesgroup/tmgsdk/PendingBindingSession.html#submitIdvMethod\(com.thalesgroup.tmgsdk.IDVMethod\)) a [IDVSession.selectIdvMethod()](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/visa/IDVSession.html#selectIdvMethod\(com.thalesgroup.tmgsdk.visa.IDVMethod\)).

## Paquetes renombrados <a href="#renamed-package" id="renamed-package"></a>

* Las clases específicas de Visa se movieron a `visa` paquete: [VisaCTFHelper](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/visa/VisaCTFHelper.html), [TokenBindingListener](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/visa/TokenBindingListener.html), [IDVSession](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/visa/IDVSession.html), [IDVMethod](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/visa/IDVMethod.html), [IDVType](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/model/visa/IDVType.html), y [OtpActivationStatus](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/model/visa/OtpActivationStatus.html).

Debido a que los nombres de clase de Visa y Mastercard son idénticos, recomendamos los siguientes cambios para evitar errores de referencia ambiguos:

* En Java, separe las llamadas a la API de Visa y Mastercard en diferentes clases. No se recomienda usar el nombre totalmente calificado (nombre de clase junto con el paquete) para llamar a las API de Visa y Mastercard dentro de una sola clase.
* En Kotlin, use la característica de alias de paquete con la `como` palabra clave:

```kotlin
import com.thalesgroup.tmgsdk.visa.IDVMethod as VisaIDVMethod
import com.thalesgroup.tmgsdk.mastercard.IDVMethod as MasterCardIDVMethod

fun main() {
 var visaIDVMethod: VisaIDVMethod
 var masterCardIDVMethod: MasterCardIDVMethod
}
```

## Clases y API eliminadas <a href="#removed-classes-and-apis" id="removed-classes-and-apis"></a>

* [TMGClientConfiguration.Builder](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/2.0.0/com/thalesgroup/tmgsdk/TMGClientConfiguration.Builder.html): Todas las opciones de configuración se movieron al [TMGClientConfiguration](https://thalesgroup.github.io/d1sdk-docs/tmg-sdk/android/3.0.0/com/thalesgroup/tmgsdk/TMGClientConfiguration.html) constructor.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/merchant-tokenization/es/integracion-del-sdk/android-api/migrate-from-2.x-to-3.0.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
