> For the complete documentation index, see [llms.txt](https://fuspay.gitbook.io/finswich-checkout-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fuspay.gitbook.io/finswich-checkout-api/integrating-via-checkout/integrating-the-checkout-on-your-app-frontend/integrating-the-finswich-checkout-on-your-vanilla-javascript-app.md).

# Integrating the Finswich Checkout on your Vanilla Javascript app

```
<script src="https://cdn.jsdelivr.net/npm/finswich-checkout@1.0.7/index.min.js"></script>
```

{% code title="vanilla Javascript Integration " lineNumbers="true" fullWidth="false" %}

```html
<!<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Static Template</title>
    <script src="https://cdn.jsdelivr.net/npm/finswich-checkout@1.0.7/index.min.js"></script>
</head>

<body>

    <button onclick="Open()" >Open</button>
    <button onclick="Close()" >Close</button>
    <script>
        let myModal;
        
        const init_option = {
            reference: "your_user_ref",
            public_key:"your_finswich_live_public_key",
            balance: "your_current_user_balance",
            origin: "your_whitelisted_app_origin"
        };

        
        document.addEventListener("DOMContentLoaded", function () {
             myModal = new FinSwitch(init_option);
       
            });
            
            const Close = () => { 
                myModal.closeModal()
            }
            const Open = () => { 
                myModal.openModal()

         }    

    </script>
</body>

</html>
```

{% endcode %}

{% hint style="success" %}
Integrating our checkout for Flutter and Dart Applications (Mobile)

<https://pub.dev/packages/finswich_checkout>
{% endhint %}
