src string Optional This script decides which environment to use. Production: `https://checkout.live.ledyer.com/bootstrap.js`. Sandbox: `https://checkout.sandbox.ledyer.com/bootstrap.js`.
<script
data-brand-color="#008B8B"
data-container-id="checkout-container"
data-no-padding="false"
data-session-id="se_1u71i6dgrlHmfnFwbtqDvl8Mbhs"
src="https://checkout.sandbox.ledyer.com/bootstrap.js"
></script>// Include in onMount or similar hook
const s = document.createElement('script');
s.setAttribute('data-brand-color', '#008B8B');
s.setAttribute('data-container-id', 'checkout-container');
s.setAttribute('data-no-padding', 'true');
s.setAttribute('data-session-id', 'se_2A123Kfl8maqB4sJOG0pKi06aFk');
s.setAttribute('src', 'https://checkout.sandbox.ledyer.com/bootstrap.js');
document.body.appendChild(s);src string Optional data-brand-color string Optional data-container-id string Optional data-no-padding boolean Optional data-session-id string The sessionId string should be stored and re-used until the purchase has been completed or the expiresAt time has been reached.