@shashank.koppunoori-gokwik/payment-sdk
v1.2.1
Published
Platform-agnostic payment components
Maintainers
Keywords
Readme
Payment SDK
Platform-agnostic payment components built with Svelte.
Installation
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>