Render the iframe
Options
This script decides which environment to use. Production: `https://checkout.live.ledyer.com/bootstrap.js`. Sandbox: `https://checkout.sandbox.ledyer.com/bootstrap.js`.
Enter a color hex value to change the background color for the CTA elements in the Ledyer checkout, depending on the color provided the button text will be set to black or white. Default background color is black (#000000).
Enter the id of the element where you want the iframe to be placed. If not specified the iframe will be placed next to the script tag.
Ledyer checkout comes with a wrapping padding of 12px by default. Set to `true` if you want to handle all padding on your own.
Enter the value of the `sessionId` string that was obtained from the response of the [Create order session](/docs/payment-products/checkout/create-order-session#handling-sessions) request.
Handling Sessions and secrets
The sessionId string should be stored and re-used until the purchase has been completed or the expiresAt time has been reached.