{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-product-guide/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["note"]},"type":"markdown"},"seo":{"title":"Legacy Web SDK (Archived)","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"legacy-web-sdk-archived","__idx":0},"children":["Legacy Web SDK (Archived)"]},{"$$mdtype":"Tag","name":"Note","attributes":{"text":"**These SDKs are deprecated and in maintenance — no new features are being added.** New integrations must use the Unified SDK (linked below). This page is retained only as a reference for merchants with an existing integration on the older SDKs.","variant":"orange"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The GlomoPay web checkout was previously delivered as separate per-flow SDKs. These have been superseded by the single ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/product-guide/sdk/unified-sdk"},"children":["Unified SDK"]}]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutApi"]}," from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://unified-sdk.glomopay.com/index.js"]},"), which auto-detects the order type (standard, LRS, subscription). New integrations must use the Unified SDK."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The snippets below document the older SDKs for reference by existing integrations. They are functionally frozen."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"legacy-checkout-sdk-standard-payments--subscriptions","__idx":1},"children":["Legacy Checkout SDK (standard payments & subscriptions)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loaded from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://glomopay-checkout-sdk.web.app/index.js"]},", exposing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutApi"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<script type=\"module\">\n  import { GlomoCheckoutApi } from 'https://glomopay-checkout-sdk.web.app/index.js';\n\n  const checkout = new GlomoCheckoutApi({\n    publicKey: 'live_xxx',\n    orderId: 'order_xxx', // or subscriptionId for subscriptions\n  });\n\n  checkout.on('payment.success', (response) => { /* ... */ });\n  checkout.on('payment.failure', (response) => { /* ... */ });\n  checkout.on('checkout.closed', () => { /* ... */ });\n\n  checkout.open();\n</script>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Migrating to the Unified SDK:"]}," change the import to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://unified-sdk.glomopay.com/index.js"]},". The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutApi"]}," constructor and events are unchanged — see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/product-guide/sdk/unified-sdk"},"children":["Unified SDK reference"]},". Note one behavioural difference: with the Unified SDK, setting ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["callbackUrl"]}," makes it ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["only"]}," redirect (it does not also emit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".on()"]}," events), whereas the legacy checkout SDK did both."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"legacy-lrs-sdk","__idx":2},"children":["Legacy LRS SDK"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loaded from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://lrs-checkout-sdk-prod.web.app/index.js"]},", exposing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LrsCheckoutApi"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<script type=\"module\">\n  import { LrsCheckoutApi } from 'https://lrs-checkout-sdk-prod.web.app/index.js';\n\n  const lrsCheckout = new LrsCheckoutApi({\n    publicKey: 'live_xxx',\n    orderId: 'order_xxx',\n  });\n\n  lrsCheckout.on('payment.success', (data) => { /* ... */ });\n  lrsCheckout.on('payment.failure', (data) => { /* ... */ });\n  lrsCheckout.on('checkout.closed', () => { /* ... */ });\n\n  await lrsCheckout.open();\n</script>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Migrating to the Unified SDK:"]}," the Unified SDK handles LRS through the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutApi"]},", so a separate ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LrsCheckoutApi"]}," is no longer needed. Change the import to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://unified-sdk.glomopay.com/index.js"]}," and use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GlomoCheckoutApi"]},"; the events are unchanged. (Note: the legacy LRS SDK emits ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkout.closed"]}," — an earlier version of the LRS guide showed a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["close"]}," event, which never actually fired.) See the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/product-guide/sdk/unified-sdk"},"children":["Unified SDK reference"]},"."]}]},"headings":[{"value":"Legacy Web SDK (Archived)","id":"legacy-web-sdk-archived","depth":1},{"value":"Legacy Checkout SDK (standard payments & subscriptions)","id":"legacy-checkout-sdk-standard-payments--subscriptions","depth":2},{"value":"Legacy LRS SDK","id":"legacy-lrs-sdk","depth":2}],"frontmatter":{"title":"Legacy Web SDK (Archived)","deprecationNote":"**These SDKs are deprecated and in maintenance — no new features are being added.** New integrations must use the Unified SDK (linked below). This page is retained only as a reference for merchants with an existing integration on the older SDKs.","seo":{"title":"Legacy Web SDK (Archived)"}},"lastModified":"2026-07-24T10:19:21.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/product-guide/sdk/legacy-web-sdk","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}