# Payment SDK

Platform-agnostic payment components built with Svelte.

## Installation

```bash
npm install @shashank.koppunoori-gokwik/payment-sdk

How to use it in HTML Page - 

```html
<script type="module">
    import PaymentSDK from './build/sdk.esm.js';
    PaymentSDK.init();
    
    function checkPaymentPageLoaded() {
        // Correct element name and selector syntax
        const element = document.querySelector('payment-widget');
        if (element) {
            console.log('Payment widget loaded');
        } else {
            console.log('Payment widget not found');
        }
    }
    
    document.addEventListener('DOMContentLoaded', checkPaymentPageLoaded);
</script>
```
