For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Render Location

If you don't wish to use a popup, you can choose to render the checkout to an element within your page. To do this, use Tebex.checkout.render() instead of Tebex.checkout.launch():

Tebex.checkout.init({
    ident: "your checkout request ident goes here",
});

Tebex.checkout.render(
    // The element to render to
    document.getElementById("some-element");
    // The width of the checkout iframe, in pixels
    500,
    // The height of the checkout iframe, in pixels
    600
    // Boolean indicating whether you want to open a new tab on mobile
    // (defaults to true if unspecified)
    false
);

Last updated