Svelte wrappers for Vektopay checkout. The core UI and security live in checkout.js served by the API Gateway.
bun add @vektopay/svelte
# or
npm install @vektopay/svelte
Your backend should create a checkout session token (via POST /v1/checkout-sessions) and send that token to the browser.
Payments are created via /v1/payments inside the checkout flow.
<script>
import {
VektopayCheckoutButton,
VektopayEmbeddedCheckout,
VektopayCardElement,
} from "@vektopay/svelte";
</script>
<VektopayCheckoutButton token="your_token" apiBase="http://localhost:3000" />
<VektopayEmbeddedCheckout token="your_token" apiBase="http://localhost:3000" />
<VektopayCardElement apiBase="http://localhost:3000" />
bun install
bun run build
npm version patch
npm publish --access public