Base Global‑e Script
You can host the SDKJavaScript file locally or be served from the Global-e servers. If you would like to host the file on your servers, you can download the script from the following location by replacing the appropriate parameters:| Parameter | Description |
|---|---|
sDomain | Production: https://web.global-e.comIntegration: https://www.bglobale.comStaging: https://www2.bglobale.com |
window | The JavaScript window object |
document | The JavaScript document object |
clientJsURL | Local file path or direct to Global‑e servers/merchant/clientsdk/<merchantId>?v=<scriptVersion> |
ScriptVersion | The version of Global-e server API.Currently 2.1.4. |
merchantId | The current Merchant ID |
This list is subject to modifications and limitations that may affect the availability of payment methods on the checkout page.
Events Summary
This section summarizes the events exposed by the Client SDK library.OnBeforeWelcome
This event occurs before the Welcome pop-up is displayed.OnWelcomeShown
TheOnWelcomeShown event is fired when the welcome pop-up is shown to the customer.
OnChangeShippingCountryClicked
TheOnChangeShippingCountryClicked event is fired when the “change shipping country” link on the welcome pop-up is clicked.
OnBeforeSwitcher
TheOnBeforeSwitcher event is fired before the country and currency pop-up is shown.
OnWelcomePopupClosed
TheOnWelcomePopupClosed event is fired after the welcome pop-up is closed.
OnShippingSwitcherClosed
TheOnShippingSwitcherClosed event is fired after the country and currency pop-up is closed.
OnCheckoutStepLoaded
TheOnCheckoutStepLoaded event is fired twice when the checkout is first loaded. then when it is complete.
OnClientEvent
TheOnClientEvent is fired when the customer interacts with the checkout.
QuerySessionValidity
TheQuerySessionValidity event is used to cause the checkout session to expire after a specified amount of time.
- If this feature is not implemented, the checkout will stay open indefinitely until the shopper clicks the place order button. Once the timer expires, a pop-up will redirect the customer back to the cart page.

