# Guía de Integración con el SDK para WEB

El archivo del SDK está disponible en la siguiente URL:

```javascript
// latest
<script src="https://3ds.payvalida.com/sdk@latest.min.js" type="module"></script>

o versiones especificas:
// 2.0.1
<script src="https://3ds.payvalida.com/sdk@2.0.1.min.js" type="module"></script>

O en caso de descargar el script:
import PayvalidaSDK from "./sdk@latest.min.js";

versiones disponibles:
2.0.1 (Latest)
```

{% hint style="warning" %}
Este archivo está minificado.
{% endhint %}

### Uso del SDK

La carga correcta del SDK habilitará en el objeto Window de javascript la propiedad PayvalidaSDK. De forma que se puede acceder como window\.PayvalidaSDK

El SDK está implementado como una clase que requiere inicialización y configuración inicial, incluyendo información del comercio y configuración 3DS.

#### Ejemplos de uso:

Usando CDN:\
<https://gist.github.com/gamelio-pv/3c75f3e985ed079d30683ed739b3c54b>

\
Descargando el script:\
<https://gist.github.com/gamelio-pv/338dd42af5ef56507cf97e98689580e7>


---

# Agent Instructions: 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:

```
GET https://docs.payvalida.com/api-tarjeta/master/sdk-para-3ds-y-score-de-riesgo-transaccional/guia-de-integracion-con-el-sdk-para-web.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
