Inttegro Web SDKs - v0.5.3
    Preparing search index...

    Module @inttegro/js

    @inttegro/js

    Controlled-origin loader and TypeScript types for mounting an Inttegro-hosted Checkout experience. This npm package does not contain the executable checkout runtime. loadInttegro() downloads it from the fixed, Inttegro-controlled URL https://js.inttegro.com/inttegro.js@<package-version>.

    import { loadInttegro } from '@inttegro/js'

    const inttegro = await loadInttegro()
    if (!inttegro) throw new Error('Checkout requires a browser')

    const checkout = inttegro.createCheckout({ orderId: 'or_...' })
    checkout.on('completed', () => {
    window.location.assign('/order-complete')
    })
    await checkout.mount('#checkout')

    Use the managed modal when Checkout should open above the current page:

    checkout.on('canceled', () => showPaymentOptions())
    await checkout.present()

    No application dialog, modal CSS, focus trap, or scroll locking is required. Call checkout.dismiss() to close the managed modal programmatically.

    The runtime URL is not configurable. Do not bundle, mirror, proxy, or self-host it. The mounted iframe is hosted by Inttegro Pages. A restrictive Content Security Policy must allow script-src https://js.inttegro.com and frame-src https://pages.inttegro.com. When using CSP nonces, pass the current request nonce to loadInttegro({ nonce }).

    CheckoutController
    CheckoutAppearance
    CheckoutOptionsBase
    CheckoutUpdateOptions
    InttegroLoadOptions
    CheckoutTheme
    InttegroCheckoutError
    InttegroCheckoutErrorCode
    CheckoutEvent
    CheckoutEventHandler
    CheckoutEventOfType
    CheckoutEventType
    CheckoutState
    InttegroRuntime
    loadInttegro
    CheckoutAction
    CheckoutCanceledEvent
    CheckoutChangeEvent
    CheckoutCompletedEvent
    CheckoutFailedEvent
    CheckoutFailure
    CheckoutFeatures
    CheckoutMoney
    CheckoutOrder
    CheckoutOrderPreparedEvent
    CheckoutPaymentActionRequiredEvent
    CheckoutPaymentAttemptFailedEvent
    CheckoutPaymentAttemptStartedEvent
    CheckoutPaymentProcessingEvent
    CheckoutPresentedEvent
    CheckoutReadyEvent
    CheckoutOptions
    CheckoutPresentation
    INTTEGRO_JS_URL