All your subscription orders can now offer guaranteed delivery
The Order Protection widget integrates with Stay AI and your Shopify store,
enhancing the subscription order experience for users with all relevant
information in one place.The widget addition to the cart simplifies the claim-filing process for users reducing friction and eliminating the need for manual navigation to the Order Protection website.
Integrate Stay AI within the Order Protection Platform
Within the Order Protection app, do the following:
Navigate to Integrations in the left navigation.
Find the Stay AI block under the Available tab.
Take the API token you created in Step 1 and add it to the API Token field and save.
Once saved, click on the Active tab and the API token field within the Stay AI block will have a hidden value. This means that your token successfully uploaded.
4
Checking the Widget UX on the Customer Subscription Portal
Navigate to Subscription Data in the left navigation and click Subscriptions.
Click the Get Customer Portal Link and open it in a new tab.
Scroll down to the Subscription Details section and check that the Order Protection widget is showing as expected.
This may be slighlty different depending on your specific Customer Portal design.
Once set up, Order Protection will be added to all cart instances within
Shopify subscription orders using Stay AI. Customers can choose to opt-in or
opt out of Order Protection for their subscription orders.
Customers will be able to file/edit claims per your normal store settings once
an order confirmation email has been sent.
Did you know? You can customize the Order Protection widget styling specifically for your subscription portal. When creating a new widget, select Subscription as the widget type to create a dedicated subscription widget.For full customization options, visit the Widget Customization page.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OrderProtection","colors":{"primary":"#5B1FD3","light":"#9B9BFD","dark":"#5B1FD3"},"logo":{"light":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-light.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=b559329f3e265ed3e989d25c28a8e911","dark":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=19d85b7fcf7ed0ed226b65098a13712b"},"favicon":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/favicon.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=922a5bd784abc0a76e3bea26c2d077db","api":{"openapi":["openapi.yaml","openapi-claims.yaml","openapi-tests.yaml","openapi-metadata.yaml"]},"background":{"color":{"light":"#FFFFFF","dark":"#1B1F27"}},"navbar":{"links":[{"href":"https://discord.gg/4YQeEghMTP","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.orderprotection.com"}},"footer":{"socials":{"github":"https://github.com/orderprotection","linkedin":"https://www.linkedin.com/company/orderprotection"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/4YQeEghMTP"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orderprotectioncom","hasAudioNarration":false,"actualSubdomain":"orderprotectioncom","customDomains":["docs.orderprotection.com"],"gitSource":{"type":"github","owner":"orderprotection","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10a6149ffae5051c3fa5b0"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ad9aa326f446bbc9726dca8","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":60},{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"Education Basecamp","count":26},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Developer Platform","count":15},{"language":"default","tag":"Claims","count":14},{"language":"default","tag":"Platforms","count":9},{"language":"default","tag":"Products","count":8},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"Getting Started","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"integrations/stay-ai","slug":"/integrations/stay-ai","pageMetadata":{"title":"Stay AI","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/stay-ai"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"All your subscription orders can now offer guaranteed delivery\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Check,CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,Tip}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsx(_components.p,{children:`The Order Protection widget integrates with Stay AI and your Shopify store,\nenhancing the subscription order experience for users with all relevant\ninformation in one place.`}),_jsx(_components.p,{children:`The widget addition to the cart simplifies the claim-filing process for users reducing friction and eliminating the need for manual navigation to the Order Protection website.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Generate an API Token`,children:[_jsxs(_components.p,{children:[`Access the Stay AI Account page: `,_jsx(_components.a,{href:`https://app.retextion.com/account/api-keys`,children:`Stay AI\nAdmin`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.code,{children:`Accounts`}),` in the Sidebar.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`API Tokens`}),` tab at the top button.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`\"New API Key\"`}),` button in the top right.`]}),`\n`,_jsxs(_components.li,{children:[`Choose a `,_jsx(_components.code,{children:`Name`}),`, `,_jsx(_components.code,{children:`Description`}),`, and `,_jsx(_components.code,{children:`Email`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Name: Order Protection`}),`\n`,_jsx(_components.li,{children:`Description: Order Protection Subscriptions Integration`}),`\n`,_jsxs(_components.li,{children:[`Email: `,_jsx(_components.a,{href:`mailto:onboarding@orderprotection.com`,children:`onboarding@orderprotection.com`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Choose permissions: Leave scopes set to `,_jsx(_components.code,{children:`All`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`\"OK\"`}),` button.`]}),`\n`]}),_jsx(Frame,{caption:`Creating an API Token`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=6691d4c9fbcb9f6e91ef33dd2e51824d`,alt:`API Token`,\"data-og-width\":`1411`,width:`1411`,\"data-og-height\":`906`,height:`906`,\"data-path\":`public/assets/img/stay-ai/creating-api-toke-stay-ai.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=eb05814927a8d096661cfa6632b4f181 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=52276a6bc224ad99f56589bb74351f58 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=af1b7dc1d1e9043e9d9a28cb31e3682f 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=da54533d3298dd61bbf063f624ef6ef0 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=b20f1209696c4599213282393ae8c5ef 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/creating-api-toke-stay-ai.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=a0a58c0c1b45af1ccb9b38e3db58fec4 2500w`})})]}),_jsxs(Step,{title:`Install Scripts in Customer Portal Designer`,children:[_jsx(_components.p,{children:`To install the Stay AI Integration on Stay AI, follow these steps:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In the left navigation, go to `,_jsx(_components.code,{children:`Customer Portal`}),` and select `,_jsx(_components.code,{children:`Design`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=89b3fbd4d143e9db2d5d1b18d56d5ea4`,alt:`stay ai customer portal`,\"data-og-width\":`1419`,width:`1419`,\"data-og-height\":`908`,height:`908`,\"data-path\":`public/assets/img/stay-ai/customer-portal-stay-ai.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=9e0e96e08dbcf6144d6db2f307a3ce03 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=c060bc6fc6707f5313829ceb842b4b75 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=641f2cce8771ec1d385855a35807d484 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=5edc4acac085d342ce91dd85b38727eb 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=c27e6ed2e1301d69088f690d99b9e957 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-stay-ai.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=c629ff568ecc0ecbde7da659f8f2705f 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Within the `,_jsx(_components.code,{children:`HTML block`}),`, add the following code:`]}),`\n`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`link`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` rel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stylesheet\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` href`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.orderprotection.com/widget/subscriptions/5.28.11/style.css\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.orderprotection.com/widget/core/latest/orderprotection.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order-protection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`div`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Within the JavaScript block, add the following function script:`}),`\n`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`37`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`37`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` script`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"script\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://cdn.orderprotection.com/widget/subscriptions/5.28.11/orderprotection.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onload`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ready to go\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OrderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createOrderProtectionWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` integration:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stay-ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`debug`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'toggled'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` totalWOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`price`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` totalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` formatter`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Intl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NumberFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` style:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'currency'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` currency:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Shopify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`active`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` formattedSubtotalOP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formatter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`format`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`totalWOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` /`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` formattedSubtotalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formatter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`format`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`totalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` /`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` subtotalElm`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'.txt-order-total-value'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotalElm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtotalElm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`innerText`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalOP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalNoOp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` interval`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` clearInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`interval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscription`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {};`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stayWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`attach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`appendChild`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`Submit`}),`.`]}),`\n`]})]}),_jsxs(Step,{title:`Integrate Stay AI within the Order Protection Platform`,children:[_jsx(_components.p,{children:`Within the Order Protection app, do the following:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Navigate to `,_jsx(_components.code,{children:`Integrations`}),` in the left navigation.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Find the Stay AI block under the `,_jsx(_components.code,{children:`Available`}),` tab.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Take the API token you created in Step 1 and add it to the API Token field and save.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Once saved, click on the `,_jsx(_components.code,{children:`Active`}),` tab and the API token field within the Stay AI block will have a hidden value. This means that your token successfully uploaded.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=4261fd803dcbe02000b5ec354e0a52d1`,alt:`stay ai api token in op app`,\"data-og-width\":`1450`,width:`1450`,\"data-og-height\":`911`,height:`911`,\"data-path\":`public/assets/img/stay-ai/stay-ai-integration-op-settings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=7cc3ace232b6ea5107419a766a731155 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=55f8b2ef7657b3736b2bbb833de8b0fe 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=63a2abce8d8fdd1cfae533bab947c562 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=a528b9a6224f7d59fdcf6c1008539ef1 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=0b84c6fd70e4147aa5506576e8b9080f 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/stay-ai-integration-op-settings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=588213531f00d0ac87bed7bcdebe5a9c 2500w`}),`\n`]}),`\n`]})]}),_jsx(Step,{title:`Checking the Widget UX on the Customer Subscription Portal`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Navigate to `,_jsx(_components.code,{children:`Subscription Data`}),` in the left navigation and click `,_jsx(_components.code,{children:`Subscriptions`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click the `,_jsx(_components.code,{children:`Get Customer Portal Link`}),` and open it in a new tab.`]}),`\n`,_jsxs(_components.li,{children:[`Scroll down to the `,_jsx(_components.code,{children:`Subscription Details`}),` section and check that the Order Protection widget is showing as expected.`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`This may be slighlty different depending on your specific Customer Portal design.`})}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=8ce993b3dad7567c24f3117040943459`,alt:`stay ai widget preview`,\"data-og-width\":`1403`,width:`1403`,\"data-og-height\":`796`,height:`796`,\"data-path\":`public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=3652a343af836781a975a401316770ef 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=67caf299ffbfa05b7e379d8f72a54ab9 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=11b22b1902825351bf22c36b3b9713b4 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=ce4c1d337af221e49943aeebe39bd2b6 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=3327ed215d2ff482928bbbff827f45d3 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/stay-ai/customer-portal-widget-check-stay-ai.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=fa670ca0c5937ac32907894d6ceb139d 2500w`}),`\n`]}),`\n`]}),`\n`]}),`\n`]})})]}),`\n`,_jsx(Check,{children:_jsx(_components.p,{children:`Once set up, Order Protection will be added to all cart instances within\nShopify subscription orders using Stay AI. Customers can choose to opt-in or\nopt out of Order Protection for their subscription orders.`})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Customers will be able to file/edit claims per your normal store settings once\nan order confirmation email has been sent.`})}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Did you know?`}),` You can customize the Order Protection widget styling specifically for your subscription portal. When creating a new widget, select `,_jsx(_components.strong,{children:`Subscription`}),` as the widget type to create a dedicated subscription widget.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=2d2cf94caf2c4df7a0850230b0cd8ac9`,alt:`Widget type selector with Subscription option highlighted`,\"data-og-width\":`3562`,width:`3562`,\"data-og-height\":`2232`,height:`2232`,\"data-path\":`public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=280\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=12771d73ec923987906484c7eef3bd45 280w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=560\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=1d3df0db1d6c47fb27370dba00331a4a 560w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=840\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fe860cdacc6e2bfd1a614ce63c06f566 840w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=17703cf3b8199d3fe824ff8afbdad0a6 1100w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=40a0c366e6b4e446880a53a1d0cc27e1 1650w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fe9d1124b36d9f262c62121db1555e7d 2500w`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=05fe38e82bc6c46e6c0a331df1a64605`,alt:`Widgets list showing a Subscription widget type`,\"data-og-width\":`3584`,width:`3584`,\"data-og-height\":`2226`,height:`2226`,\"data-path\":`public/assets/img/education-basecamp/widgets/widget-subscription-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fcad4af6448f9acd1aa0b38b5b2693e2 280w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=735e2c49b43b13c497426e2cfffb7d23 560w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=547dafcf2285b6e1fdb7a7a494f8c88f 840w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=eeee827286ffa1b283b8b3e07248ee9c 1100w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=3c8c4d1d80f1775bc2bf1757912fe840 1650w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=78c39b9010eeb0d40b21b10ccccb11f3 2500w`}),_jsxs(_components.p,{children:[`For full customization options, visit the `,_jsx(_components.a,{href:`https://docs.orderprotection.com/education-basecamp/customizations/widgets`,children:`Widget Customization`}),` page.`]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Stay AI","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/stay-ai"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"orderprotectioncom","siteName":"OrderProtection","title":"Stay AI - OrderProtection","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T17:18:05.870Z","originalFileLocation":"integrations/stay-ai.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head name=\"application-name\" content=\"OrderProtection\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Stay AI - OrderProtection\">\u003cmeta data-mint-head property=\"og:description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OrderProtection\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orderprotection.com/integrations/stay-ai\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orderprotectioncom.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Stay+AI\u0026amp;description=All+your+subscription+orders+can+now+offer+guaranteed+delivery\u0026amp;theme=bd0c6e7956fa37ab428f35d0\u0026amp;signature=dbbf8b5ffb8a4c75cf468ac4b5de33dfd53173f9704fa49922b2f200a2872511\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Stay AI - OrderProtection\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orderprotectioncom.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Stay+AI\u0026amp;description=All+your+subscription+orders+can+now+offer+guaranteed+delivery\u0026amp;theme=bd0c6e7956fa37ab428f35d0\u0026amp;signature=dbbf8b5ffb8a4c75cf468ac4b5de33dfd53173f9704fa49922b2f200a2872511\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OrderProtection\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B1FD3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orderprotection.com/integrations/stay-ai\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/stay-ai.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.orderprotection.com/#organization\",\"name\":\"OrderProtection\",\"url\":\"https://docs.orderprotection.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-light.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=b559329f3e265ed3e989d25c28a8e911\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.orderprotection.com#website\",\"name\":\"OrderProtection\",\"url\":\"https://docs.orderprotection.com\",\"publisher\":{\"@id\":\"https://docs.orderprotection.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.orderprotection.com/integrations/stay-ai#webpage\",\"url\":\"https://docs.orderprotection.com/integrations/stay-ai\",\"name\":\"Stay AI\",\"description\":\"All your subscription orders can now offer guaranteed delivery\",\"dateModified\":\"2026-05-14T17:18:05.870Z\",\"isPartOf\":{\"@id\":\"https://docs.orderprotection.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orderprotection.com/integrations/stay-ai#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orderprotection.com/integrations/stay-ai#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.orderprotection.com/integrations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscriptions\",\"item\":\"https://docs.orderprotection.com/integrations/smartrr\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Stay AI\",\"item\":\"https://docs.orderprotection.com/integrations/stay-ai\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orderprotection.com/integrations/stay-ai#article\",\"headline\":\"Stay AI\",\"name\":\"Stay AI\",\"description\":\"All your subscription orders can now offer guaranteed delivery\",\"url\":\"https://docs.orderprotection.com/integrations/stay-ai\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orderprotection.com/integrations/stay-ai#webpage\"},\"dateModified\":\"2026-05-14T17:18:05.870Z\",\"publisher\":{\"@id\":\"https://docs.orderprotection.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.orderprotection.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OrderProtection\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OrderProtection\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/stay-ai.md","siteName":"OrderProtection","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/4YQeEghMTP"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Intro","pages":[{"title":"Getting Started","href":"/introduction"}]},{"group":"Platforms","pages":[{"title":"Platforms","icon":"layer-group","href":"/platforms/index"},{"group":"Shopify","icon":"shopify","pages":[{"title":"Collaborator Access","href":"/platforms/shopify/granting-collaborator-access"},{"title":"A/B Testing","href":"/platforms/shopify/launching-AB-Tests"},{"title":"Offboarding from Order Protection","href":"/platforms/shopify/guides/offboarding-from-order-protection"},{"title":"Installing on Hydrogen","href":"/platforms/shopify/guides/hydrogen-install"},{"title":"OP Product Redirect Guide","href":"/platforms/shopify/guides/op-product-redirect"}]},{"group":"Magento","icon":"magento","pages":[{"title":null,"href":"/platforms/magento/installing-the-plugin"}]},{"group":"WooCommerce","icon":"wordpress","pages":[{"title":"Installing the plugin","href":"/platforms/woocommerce/plugin-install"}]},{"group":"BigCommerce","icon":"https://storage.googleapis.com/cdn.orderprotection.com/documentation-assets/bigcommerce-gray.svg","pages":[{"title":"Installing on BigCommerce","href":"/platforms/big-commerce/installing-on-big-commerce"}]}]},{"group":"Integrations","pages":[{"title":"Integrations","icon":"plug","href":"/integrations/index"},{"group":"Help Desk","pages":[{"title":"Gorgias","href":"/integrations/gorgias"},{"title":"Zendesk","href":"/integrations/zendesk"},{"title":"Richpanel","href":"/integrations/richpanel"},{"title":"Kustomer","href":"/integrations/kustomer"}]},{"group":"Shopping Experience","pages":[{"title":"Rise.ai","href":"/integrations/rise"},{"title":"Tapcart","href":"/integrations/tapcart"},{"title":"Klayvio","href":"/integrations/klayvio"},{"title":"Rebuy","href":"/integrations/rebuy"}]},{"group":"Subscriptions","pages":[{"title":"Smartrr","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/smartrr"},{"title":"Stay AI","href":"/integrations/stay-ai"},{"title":"Recharge","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/recharge"},{"title":"Ordergroove","href":"/integrations/ordergroove"},{"title":"Skio","href":"/integrations/skio"},{"title":"Loop Subscriptions","href":"/integrations/loopwork"}]},{"group":"Fulfillments","pages":[{"title":"ShipStation","href":"/integrations/shipstation"}]},{"group":"Returns","pages":[{"title":"Loop","href":"/integrations/loop"},{"title":"Parcel Lab","href":"/integrations/parcellab"},{"title":"Refundid","href":"/integrations/refundid"}]}]},{"group":"Guides","pages":[{"title":"Guides","icon":"book-open","href":"/guides/index"},{"group":"All Guides","pages":[{"title":"Integrating by API","href":"/guides/how-api-integration-works"},{"title":"Adding a custom domain","href":"/guides/whitelabel"},{"title":"Fulfilling Order Protection","href":"/guides/fulfilling-order-protection"},{"title":"Excluding Order Protection from Discounts","href":"/guides/exclude-op-from-discounts"}]}]},{"group":"Education Basecamp","pages":[{"title":"Education Basecamp","icon":"campground","href":"/education-basecamp/index"},{"group":"General","pages":[{"title":"Onboarding with Order Protection","href":"/education-basecamp/general/onboarding"},{"title":"Frequently Asked Questions","href":"/education-basecamp/general/faq"},{"title":"Order Protection as an Optional Service","href":"/education-basecamp/general/order-protection-optional-service"},{"title":"Order Protection App Walkthrough","href":"/education-basecamp/general/dashboard-walkthrough"}]},{"group":"Analytics","pages":[{"title":"Dashboard","href":"/education-basecamp/analytics/dashboard"},{"title":"Issue Gallery","href":"/education-basecamp/analytics/gallery"}]},{"group":"Finance","pages":[{"title":"Claim Types Credited","href":"/education-basecamp/finance/claim-types-credited"},{"title":"How Payouts Work","href":"/education-basecamp/finance/how-payouts-work"},{"title":"How Payments Work","href":"/education-basecamp/finance/how-payments-work"}]},{"group":"Claims","pages":[{"title":"How the Claim Queue Works","href":"/education-basecamp/claims/how-the-claim-queue-works"},{"title":"Filing a Claim","href":"/education-basecamp/claims/filing-a-claim"},{"title":"Product Taxonomy (Components \u0026 Bundles)","href":"/education-basecamp/claims/product-taxonomy"},{"title":"Claim Settings","href":"/education-basecamp/claims/claim-settings"},{"title":"Store Credit","href":"/education-basecamp/claims/store-credit"},{"title":"Claim Automation","href":"/education-basecamp/claims/claim-automation"},{"title":"Manufacturer \u0026 Extended Warranties","href":"/education-basecamp/claims/warranties"}]},{"group":"Customizations","pages":[{"title":"Branding Your Claim Portal","href":"/education-basecamp/customizations/branding-your-portal"},{"title":"Email Designer","href":"/education-basecamp/customizations/emails"},{"title":"Widget Customization","href":"/education-basecamp/customizations/widgets"},{"title":"Info Modals","href":"/education-basecamp/customizations/info-modals"}]},{"group":"Settings","pages":[{"title":"Message Macros","href":"/education-basecamp/settings/message-macros"},{"title":"Order and Claim Tags","href":"/education-basecamp/settings/order-and-claim-tags"},{"title":"Policies","href":"/education-basecamp/settings/policies"},{"title":"Team Members","href":"/education-basecamp/settings/team-members"},{"title":"Standard Operating Procedures (SOPs)","href":"/education-basecamp/settings/sops"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]},{"tab":"Developer Platform","pages":[{"title":"Developer Platform","href":"/developer/introduction"}]}]},"basePath":"","title":"Stay AI - OrderProtection","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-C3K8Ee1b.js","DynamicMarkdown-DgKZ4_wp.js","zoom-image-lightbox-hkb03gBi.js","lightbox-handle-r17bVUz3.js"]}