Subotiz supports completing the checkout process via a hosted page (Hosted Mode). When a customer needs to checkout, you can use the Subotiz API to create a Checkout Session and then redirect the customer to the Subotiz checkout page to complete the entire payment process.
Checkout Flow Description
When a customer is ready to complete a purchase, initiate a checkout request from your client-side application to your server. Your server should then use the Subotiz API to create a Checkout Session.
The Checkout Session will provide a URL for the checkout page. You should redirect the customer to this Subotiz-hosted checkout page.
The customer will enter their payment information and complete the transaction on the Subotiz checkout page.
After the transaction is completed, Subotiz will notify your server via a webhook.
Integration Steps
1
Create a Product
Create products and product pricing within the Subotiz merchant platform. Store the product and price information on your server. Creating a Checkout Session relies on the price_id of the product pricing to dynamically retrieve product information.
Create a Product
Create Product Pricing
2
Provide Success and Cancel URLs
Your application needs to prepare two publicly accessible page URLs (the same URL can be used for both):
A URL to redirect customers to after a successful payment.
A URL to redirect customers to if they cancel the payment.
3
Provide a Webhook Endpoint
Create an endpoint to receive events for your account. When an event occurs (e.g., a successful payment), Subotiz will send an HTTPS POST request containing a JSON-formatted event object to the Webhook endpoint. You can use these events to keep your system’s business data in sync.
4
Provide an Entry Point to Create a Checkout Session
Your client-side application needs an entry point to initiate checkout, such as a “Checkout” button on an order preview page. When a customer clicks this button, your server should call the Subotiz API to create a Checkout Session . Modify the API call parameters based on the order information. The parameters passed when creating the Checkout Session determine what the customer sees on the checkout page (e.g., product info, order price). After the API responds, redirect the customer to the Subotiz checkout page.
Example: Creating a Checkout Session in Hosted Mode
order_id: Your platform’s internal order ID, used for subsequent business data correlation.
integration_method: Set to hosted to use the hosted page integration method.
cancel_url: The URL the customer is redirected to if they cancel payment on the Subotiz Checkout page.
return_url: The URL the customer is redirected to after a successful payment on the Subotiz Checkout page.
Example Checkout Page
After the customer completes checkout, Subotiz will redirect them back to your success page (return_url), concluding the checkout flow. Additionally, Subotiz will send a Webhook notification to your server, where you can handle post-payment logic (e.g., activating a subscription).
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Subotiz","description":"Subotiz Developer Documentation","colors":{"primary":"#7700ea","light":"#a968ff","dark":"#430084"},"logo":{"light":"https://mintcdn.com/shoplazza-92a3a725/qE6OW7uXRx_JwZAh/images/Logo.svg?fit=max\u0026auto=format\u0026n=qE6OW7uXRx_JwZAh\u0026q=85\u0026s=f4ba7dc0a1b50b7b7a4aa5042ddfd95f","dark":"https://mintcdn.com/shoplazza-92a3a725/IYhOhkNHboR-yvuO/images/darkLogo.svg?fit=max\u0026auto=format\u0026n=IYhOhkNHboR-yvuO\u0026q=85\u0026s=0c023c7e751ef32188fbd05ca03326dd"},"favicon":"https://mintcdn.com/shoplazza-92a3a725/xi6unjY8U9x8k31B/favicon.png?fit=max\u0026auto=format\u0026n=xi6unjY8U9x8k31B\u0026q=85\u0026s=bab15cd5e241d151f64c11ae16709f03","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","javascript","python","php","go","java","ruby"],"prefill":true}},"navbar":{"links":[{"href":"/llms.txt","label":"llms.txt"}]},"footer":{},"icons":{"library":"lucide"},"contextual":{"options":["assistant","copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/quick-start/overview"},{"language":"zh","href":"zh/quick-start/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"shoplazza-92a3a725","hasAudioNarration":false,"actualSubdomain":"shoplazza-92a3a725","customDomains":["docs.subotiz.com"],"gitSource":{"type":"github","owner":"shoplazza","repo":"subotiz-docs-mintlify","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d3539ffae5051c40c14e"},"feedback":{"thumbs":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afe9c085db5605d838a2ea3","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"en","tag":"API Reference","count":73},{"language":"en","tag":"Subotiz API","count":73},{"language":"zh","tag":"API 参考","count":73},{"language":"zh","tag":"Subotiz API","count":73},{"language":"en","tag":"Documentation","count":30},{"language":"zh","tag":"文档","count":30},{"language":"zh","tag":"常见问题","count":28},{"language":"en","tag":"Webhook","count":18},{"language":"zh","tag":"Webhook","count":18},{"language":"en","tag":"Subscription","count":14},{"language":"en","tag":"FAQ","count":14},{"language":"en","tag":"Frequently Asked Questions","count":14},{"language":"zh","tag":"订阅","count":14},{"language":"en","tag":"Event","count":13},{"language":"zh","tag":"事件","count":13},{"language":"en","tag":"Product","count":9},{"language":"zh","tag":"商品管理","count":9},{"language":"en","tag":"Price","count":8},{"language":"zh","tag":"商品定价","count":8},{"language":"zh","tag":"V2 版本","count":8}],"searchSettings":{"maxResults":6}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":[{"filePath":"style.css","content":"#content a.link,#content a:not([class]){color:#7700ea!important;font-weight:500!important;text-underline-offset:2px}#content a.link strong,#content a.link b,#content a.link em{color:inherit!important}#content a.link:hover,#content a:not([class]):hover{color:#7700ea!important}.dark #content a.link,.dark #content a:not([class]){color:rgb(var(--primary-light))!important}.dark #content a.link:hover,.dark #content a:not([class]):hover{color:rgb(var(--primary-light))!important}#pagination{gap:3rem;align-items:flex-start}#pagination a:last-child{text-align:right;justify-content:flex-end}#navbar .navbar-link>a{padding:0.375rem 0.6rem;border-radius:0.5rem;color:rgb(var(--gray-900))!important;transition:background-color 0.15s ease, color 0.15s ease}.dark #navbar .navbar-link>a{color:rgb(var(--gray-300))!important}#navbar .navbar-link>a:hover{background-color:rgb(var(--gray-600) / 0.06)}.dark #navbar .navbar-link>a:hover{background-color:rgb(var(--gray-200) / 0.08)}#navbar-transition{border-bottom-color:rgb(var(--gray-950) / 0.04)!important}.dark #navbar-transition{border-bottom-color:rgb(255 255 255 / 0.10)!important}@media (min-width: 1024px){#navbar div.h-16>div.flex-1{border-bottom:0!important}#navbar-transition::after{content:\"\";position:absolute;left:0;right:0;top:4rem;border-top:1px solid rgb(var(--gray-950) / 0.04);pointer-events:none}.dark #navbar-transition::after{border-top-color:rgb(255 255 255 / 0.10)}}@media (min-width: 1024px){#navbar div:has(>#localization-select-trigger){position:absolute;right:3rem;z-index:50}#navbar li.navbar-link:has(a[href$=\".txt\"]){transform:translateX(-7.25rem)}}#content .frame{margin-top:1.25rem;margin-bottom:1.25rem}#table-of-contents-content ul{margin-left:0;padding-left:0}#table-of-contents-content .toc-item>a{border-left:1px solid rgb(var(--gray-950) / 0.05);padding-left:0.75rem;transition:border-color 0.15s ease, color 0.15s ease}#table-of-contents-content .toc-item>a:hover{border-left-color:rgb(var(--gray-950) / 0.2)}.dark #table-of-contents-content .toc-item>a{border-left-color:rgb(255 255 255 / 0.1)}.dark #table-of-contents-content .toc-item>a:hover{border-left-color:rgb(255 255 255 / 0.2)}#table-of-contents-content .toc-item>a.text-primary,#table-of-contents-content .toc-item>a[aria-current=\"true\"]{border-left:2px solid rgb(var(--primary));color:rgb(var(--primary))!important}.dark #table-of-contents-content .toc-item>a.text-primary,.dark #table-of-contents-content .toc-item>a[aria-current=\"true\"]{border-left-color:rgb(var(--primary-light));color:rgb(var(--primary-light))!important}#table-of-contents-content .toc-item[data-depth=\"2\"],#table-of-contents-content .toc-item[data-depth=\"3\"],#table-of-contents-content .toc-item[data-depth=\"4\"],#table-of-contents-content .toc-item[data-depth=\"5\"]{display:none!important}#table-of-contents-content .toc-item[data-depth=\"1\"]>a{padding-left:1.75rem!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) div:has(>div>#content-area){gap:0!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) div:has(>#content-area),html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-area,html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-container{width:100%!important;max-width:100%!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table{width:100%!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-area{padding-right:0!important;margin-right:0!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table{font-size:0.8125rem;line-height:1.4}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table :is(th,td,code,a){font-size:0.8125rem}#theme-preference-menu-trigger:hover{background-color:rgb(var(--gray-600) / 0.05)}.dark #sidebar a:hover,.dark #sidebar button:hover,.dark #theme-preference-menu-trigger:hover{background-color:rgb(var(--gray-200) / 0.10)!important}@layer utilities{.dark #localization-select-trigger:hover{background-color:rgb(var(--gray-200) / 0.16)!important}}.dark #search-bar-entry{--tw-ring-color: rgb(var(--gray-400) / 0.6) !important;border-color:rgb(var(--gray-400) / 0.6)!important}.dark #content li::marker{color:rgb(var(--gray-500))!important}.dark [role=\"menu\"]{background-color:rgb(var(--gray-800))!important;border-color:rgb(var(--gray-700))!important}.dark [role=\"menu\"] [role=\"menuitem\"]:hover,.dark [role=\"menu\"] [role=\"menuitem\"][data-highlighted],.dark [role=\"menu\"] [role=\"menuitemradio\"]:hover,.dark [role=\"menu\"] [role=\"menuitemradio\"][data-highlighted],.dark [role=\"menu\"] [role=\"menuitemradio\"][aria-checked=\"true\"],.dark [role=\"menu\"] [data-highlighted]{background-color:rgb(var(--gray-700) / 0.7)!important}.dark #sidebar svg,.dark #localization-select-trigger svg,.dark #page-context-menu svg{color:rgb(var(--gray-400))!important}.dark #sidebar button:hover svg,.dark #localization-select-trigger:hover svg,.dark #page-context-menu button:hover svg{color:rgb(var(--gray-200))!important}#sidebar svg[class~=\"bg-gray-400\"]{background-color:currentColor!important}#sidebar img[src$=\"icon-checkout-v2.svg\"],#sidebar img[src$=\"icon-payment.svg\"]{filter:brightness(0) invert(0.259)!important}.dark #sidebar img[src$=\"icon-checkout-v2.svg\"],.dark #sidebar img[src$=\"icon-payment.svg\"]{filter:brightness(0) invert(0.635)!important}.subotiz-fab{position:fixed;right:var(--subotiz-fab-right, 2.75rem);z-index:60;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:9999px;background-color:#fff;color:rgb(var(--gray-500));border:1px solid rgb(var(--gray-950) / 0.1);box-shadow:0 2px 10px rgb(var(--gray-950) / 0.1);transition:color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease}#subotiz-feedback-fab{bottom:1.5rem}#subotiz-help-fab{bottom:4.5rem}.subotiz-fab:hover{color:rgb(var(--primary));border-color:rgb(var(--primary) / 0.4);background-color:rgb(var(--primary) / 0.06);transform:translateY(-1px)}.dark .subotiz-fab{background-color:rgb(var(--gray-800));color:rgb(var(--gray-400));border-color:rgb(255 255 255 / 0.12);box-shadow:0 2px 10px rgb(0 0 0 / 0.35)}.dark .subotiz-fab:hover{color:rgb(var(--primary-light));border-color:rgb(var(--primary-light) / 0.5);background-color:rgb(var(--primary-light) / 0.12)}.subotiz-fab::after{content:attr(aria-label);position:absolute;right:calc(100% + 0.5rem);top:50%;transform:translateY(-50%);white-space:nowrap;background-color:rgb(var(--gray-900));color:#fff;font-size:0.75rem;line-height:1;padding:0.375rem 0.5rem;border-radius:0.375rem;opacity:0;pointer-events:none;transition:opacity 0.15s ease}.subotiz-fab:hover::after{opacity:1}html[data-fab-tip=\"right\"] .subotiz-fab::after{right:auto;left:calc(100% + 0.5rem)}html[data-ai-open] .subotiz-fab{display:none!important}#content details.accordion[open]>summary{border-bottom:1px solid rgb(var(--gray-950) / 0.06)}.dark #content details.accordion[open]>summary{border-bottom-color:rgb(255 255 255 / 0.08)}#content details.accordion>div{margin-top:1rem!important}[data-callout-type=\"info\"]{border-color:rgb(var(--primary) / 0.35)!important;background-color:rgb(var(--primary) / 0.06)!important}[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--primary))!important}.dark [data-callout-type=\"info\"]{border-color:rgb(var(--primary-light) / 0.4)!important;background-color:rgb(var(--primary-light) / 0.1)!important}.dark [data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--primary-light))!important}[data-callout-type=\"note\"]{border-color:rgb(var(--gray-200))!important;background-color:rgb(var(--gray-50))!important}[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--gray-500))!important}.dark [data-callout-type=\"note\"]{border-color:rgb(var(--gray-700))!important;background-color:rgb(255 255 255 / 0.06)!important}.dark [data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--gray-400))!important}.primitive-param-field>.py-6{padding-top:1rem!important;padding-bottom:1rem!important}.expandable-content .primitive-param-field>.py-6{padding-top:0.75rem!important;padding-bottom:0.75rem!important}.mb-14:has(>.api-section){margin-bottom:2rem!important}.api-section [data-as=\"p\"]>code,.api-section li>code,.primitive-param-field [data-as=\"p\"]>code,.primitive-param-field li>code{font-size:0.8125em!important;padding:0.125rem 0.375rem!important;border-radius:0.3rem!important;background-color:rgb(var(--gray-100))!important;border:1px solid rgb(var(--gray-950) / 0.06)!important}.dark .api-section [data-as=\"p\"]>code,.dark .api-section li>code,.dark .primitive-param-field [data-as=\"p\"]>code,.dark .primitive-param-field li>code{background-color:rgb(255 255 255 / 0.06)!important;border-color:rgb(255 255 255 / 0.08)!important}#content .steps{margin-top:1rem!important}#content .frame{background:transparent!important;padding:0!important;border-radius:0!important;overflow:visible!important}#content .frame>.absolute{display:none!important}#content .frame>div.relative:not([data-component-part=\"frame-caption\"]){border:1px solid rgb(var(--gray-950) / 0.1)!important;border-radius:12px!important;padding:12px!important;background:#fff!important}.dark #content .frame>div.relative:not([data-component-part=\"frame-caption\"]){border-color:rgb(255 255 255 / 0.12)!important;background:rgb(var(--gray-800) / 0.35)!important}#content .frame img{border-radius:6px!important}#content .frame [data-component-part=\"frame-caption\"]{text-align:center!important;margin-top:0.5rem!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"]{color:rgb(var(--primary))!important}.dark [data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"]{color:rgb(var(--primary-light))!important}[data-component-part=\"card-content-container\"]{display:grid;grid-template-columns:auto 1fr;column-gap:0.625rem;align-items:center}[data-component-part=\"card-content-container\"]>a[data-client-link]{display:contents}[data-component-part=\"card-content-container\"] .w-full{display:contents}[data-component-part=\"card-content-container\"] [data-component-part=\"card-icon\"]{grid-column:1;grid-row:1}[data-component-part=\"card-content-container\"] [data-component-part=\"card-title\"]{grid-column:2;grid-row:1;margin-top:0!important}[data-component-part=\"card-content-container\"] [data-component-part=\"card-content\"]{grid-column:1 / -1;grid-row:2;margin-top:0.5rem!important}.dark #assistant-entry{box-shadow:0 0 0 1px rgba(162, 158, 165, 0.6)}#navigation-items button[data-active-ancestor]{color:rgb(var(--primary))!important}#navigation-items button[data-active-ancestor] svg:not([stroke]){background-color:rgb(var(--primary))!important}.dark #navigation-items button[data-active-ancestor]{color:rgb(var(--primary-light))!important}.dark #navigation-items button[data-active-ancestor] svg:not([stroke]){background-color:rgb(var(--primary-light))!important}#navigation-items button[data-active-ancestor] svg[stroke]{color:rgb(var(--primary))!important}.dark #navigation-items button[data-active-ancestor] svg[stroke]{color:rgb(var(--primary-light))!important}[data-component-part=\"search-input-container\"]{border-color:oklab(0.704767 0.00727233 -0.00827515 / 0.3)!important}.dark [data-component-part=\"search-input-container\"]{border-color:rgba(162, 158, 165, 0.6)!important}#sidebar{top:7rem!important}"}]}
{"page":{"pagePath":"en/integration/hosted","slug":"/en/integration/hosted","pageMetadata":{"title":"Hosted Page","description":null,"href":"/en/integration/hosted"},"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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Mermaid,OptimizedImage,Step,Steps}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Subotiz supports completing the checkout process via a hosted page (Hosted Mode). When a customer needs to checkout, you can use the Subotiz API to create a Checkout Session and then redirect the customer to the Subotiz checkout page to complete the entire payment process.`}),`\n`,_jsx(Heading,{level:`2`,id:`checkout-flow-description`,children:`Checkout Flow Description`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`When a customer is ready to complete a purchase, initiate a checkout request from your `,_jsx(_components.strong,{children:`client-side application`}),` to your `,_jsx(_components.strong,{children:`server`}),`. Your server should then use the Subotiz API to create a Checkout Session.`]}),`\n`,_jsx(_components.li,{children:`The Checkout Session will provide a URL for the checkout page. You should redirect the customer to this Subotiz-hosted checkout page.`}),`\n`,_jsx(_components.li,{children:`The customer will enter their payment information and complete the transaction on the Subotiz checkout page.`}),`\n`,_jsx(_components.li,{children:`After the transaction is completed, Subotiz will notify your server via a webhook.`}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant Client as Merchant Client\n participant Server as Merchant Server\n participant SubotizAPI as Subotiz API\n participant SubotizCheckout as Subotiz Checkout\n\n Client->>Server: 1. Initiate Order\n Server->>SubotizAPI: 2. Create Checkout Session\n SubotizAPI-->>Server: 3. Return Checkout Page URL\n Server->>SubotizCheckout: 4. Redirect Customer to Checkout Page\n note right of SubotizCheckout: 5. Customer Completes Payment\n SubotizCheckout->>Client: 6. Redirect Customer Back to APP\n SubotizAPI->>Server: webhook Notification with Payment Result`}),`\n`,_jsx(Heading,{level:`2`,id:`integration-steps`,children:`Integration Steps`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create a Product`,children:[_jsxs(_components.p,{children:[`Create products and product pricing within the Subotiz merchant platform. Store the product and price information on your server. Creating a Checkout Session relies on the `,_jsx(_components.code,{children:`price_id`}),` of the product pricing to dynamically retrieve product information.`]}),_jsx(Frame,{caption:`Create a Product`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=48a7e362658755b41676c6b7c72d70fb`,\"data-og-width\":`1913`,width:`1913`,\"data-og-height\":`855`,height:`855`,\"data-path\":`images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=8e7c8b281a7003a8aacc7bbaac1e4c5f 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=dc17d9781d1911d3122b354891ff5f8a 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=7865ae9125541827b7de8172bd5fed9f 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=99eddd18c4169e8ac15525068647126b 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=186dd6a401fa4eeceabe8e35e6179a0d 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8dde4ef3-8850f8c0d7752d9788b2a2199ae5f9a28f12cc6a494a71548a73957e-20250901-184228.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=30634ce405c56b3fe70d7e5b5be54d89 2500w`})}),_jsx(Frame,{caption:`Create Product Pricing`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=f559f1068f084e59a989d49f9e934609`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`853`,height:`853`,\"data-path\":`images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=7e8eaed21bf6c866ddf9bcf7746dddc3 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=4d344008b31db0a2af7cc22583905d11 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=ff548c76ab90da2651a37028c6b7c851 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=adf91ceb5c0ce8973bd0ae1c2ef0dfe9 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=bfcef0007f396b335c5c164018e7fcf3 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/5ba6678d-53dec35d10ebc5ed846609583fd381b30b119cbdd72138782e1bfb50-20250901-184452.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=bd32f87787d8faca87a0d62f7b056756 2500w`})})]}),_jsxs(Step,{title:`Provide Success and Cancel URLs`,children:[_jsx(_components.p,{children:`Your application needs to prepare two publicly accessible page URLs (the same URL can be used for both):`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A URL to redirect customers to after a successful payment.`}),`\n`,_jsx(_components.li,{children:`A URL to redirect customers to if they cancel the payment.`}),`\n`]})]}),_jsx(Step,{title:`Provide a Webhook Endpoint`,children:_jsxs(_components.p,{children:[`Create an endpoint to receive events for your account. When an event occurs (e.g., a successful payment), Subotiz will send an HTTPS POST request containing a JSON-formatted event object to the `,_jsx(_components.a,{href:`/en/webhook/introduction-2`,children:`Webhook`}),` endpoint. You can use these events to keep your system’s business data in sync.`]})}),_jsxs(Step,{title:`Provide an Entry Point to Create a Checkout Session`,children:[_jsxs(_components.p,{children:[`Your client-side application needs an entry point to initiate checkout, such as a “Checkout” button on an order preview page. When a customer clicks this button, your server should call the `,_jsx(_components.a,{href:`/en/api/introduction-1`,children:`Subotiz API `}),`to create a `,_jsx(_components.a,{href:`/en/api/v1-checkout-session-create-checkout-session`,children:`Checkout Session `}),`. Modify the API call parameters based on the order information. The parameters passed when creating the Checkout Session determine what the customer sees on the checkout page (e.g., product info, order price). After the API responds, redirect the customer to the Subotiz checkout page.`]}),_jsx(Heading,{level:`4`,id:`example-creating-a-checkout-session-in-hosted-mode`,children:`Example: Creating a Checkout Session in Hosted Mode`}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.subotiz.com/api/v1/session'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: Bearer {your_api_key}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Request-Id: 9913dca8-90f8-4e20-98bc-565f0222ffa8'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data-raw `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"access_no\": \"77d52a21dc032b4\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"sub_merchant_id\": \"2816433\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"order_id\": \"123e4567-zzzaa20daw11a\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payer_id\": \"customer_id_0012\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"line_items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\t{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\t\t\"price_id\": \"543321366326164797\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\t\t\"quantity\": \"1\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\t}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\t\"email\": \"[email protected]\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"integration_method\": \"hosted\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cancel_url\": \"https://www.subotiz.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"return_url\": \"https://www.subotiz.com\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t}'`})}),`\n`]})})}),_jsx(Heading,{level:`4`,id:`key-parameters`,children:`Key Parameters`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`order_id`}),`: Your platform’s internal order ID, used for subsequent business data correlation.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`integration_method`}),`: Set to `,_jsx(_components.code,{children:`hosted`}),` to use the hosted page integration method.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cancel_url`}),`: The URL the customer is redirected to if they cancel payment on the Subotiz Checkout page.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`return_url`}),`: The URL the customer is redirected to after a successful payment on the Subotiz Checkout page.`]}),`\n`]}),_jsx(Frame,{caption:`Example Checkout Page`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=a3f56b4c26099e6b76375c859508c7a4`,\"data-og-width\":`3834`,width:`3834`,\"data-og-height\":`1696`,height:`1696`,\"data-path\":`images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=bbf25f8eda1029f3182c9dc8ff1ac7e9 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=ed1f489b343d7d8f584c0fd52e5449c4 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=ed3fe30f1275c6f30f4b84c5d62235a5 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=8b2eb55d12422ee623aef2d585ac908f 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=d74c11e3e6a345e72f61848ba4171ae1 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/817f4033-d916f05797030bb1db5016d117eb340179ac14f8e95184a47215e97e-sample_checkout.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=3a6ab29f804a02a62bea78835700150c 2500w`})}),_jsx(_components.p,{children:`After the customer completes checkout, Subotiz will redirect them back to your success page (return_url), concluding the checkout flow. Additionally, Subotiz will send a Webhook notification to your server, where you can handle post-payment logic (e.g., activating a subscription).`})]})]})]})}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":"Hosted Page","description":null,"href":"/en/integration/hosted"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Checkout Flow Description","slug":"checkout-flow-description","depth":2,"children":[]},{"title":"Integration Steps","slug":"integration-steps","depth":2,"children":[{"title":"Example: Creating a Checkout Session in Hosted Mode","slug":"example-creating-a-checkout-session-in-hosted-mode","depth":4,"children":[]},{"title":"Key Parameters","slug":"key-parameters","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/shoplazza-92a3a725/01e940adff1c3ce9/floating-widgets.js"],"subdomain":"shoplazza-92a3a725","siteName":"Subotiz","title":"Hosted Page - Subotiz","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/integration/hosted","matchLevel":0},"zh":{"href":"/zh/integration/hosted","matchLevel":1}}},"lastModified":"2026-11-12T05:49:28.312Z","originalFileLocation":"en/integration/hosted.mdx","locale":"en"},"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=\"application-name\" content=\"Subotiz\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Hosted Page - Subotiz\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Subotiz\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.subotiz.com/en/integration/hosted\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shoplazza-92a3a725.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Hosted+Page\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=d6de3aa5ff6474553d01a3ff473247a031b485438b1751078fbaf5a0b8f3913f\">\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=\"Hosted Page - Subotiz\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shoplazza-92a3a725.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Hosted+Page\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=d6de3aa5ff6474553d01a3ff473247a031b485438b1751078fbaf5a0b8f3913f\">\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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Subotiz\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7700ea\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.subotiz.com/en/integration/hosted\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/integration/hosted.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.subotiz.com/en/integration/hosted\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.subotiz.com/zh/integration/hosted\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.subotiz.com/en/integration/hosted\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.subotiz.com/#organization\",\"name\":\"Subotiz\",\"url\":\"https://docs.subotiz.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/shoplazza-92a3a725/qE6OW7uXRx_JwZAh/images/Logo.svg?fit=max\u0026auto=format\u0026n=qE6OW7uXRx_JwZAh\u0026q=85\u0026s=f4ba7dc0a1b50b7b7a4aa5042ddfd95f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.subotiz.com#website\",\"name\":\"Subotiz\",\"url\":\"https://docs.subotiz.com\",\"publisher\":{\"@id\":\"https://docs.subotiz.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.subotiz.com/en/integration/hosted#webpage\",\"url\":\"https://docs.subotiz.com/en/integration/hosted\",\"name\":\"Hosted Page\",\"dateModified\":\"2026-11-12T05:49:28.312Z\",\"isPartOf\":{\"@id\":\"https://docs.subotiz.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.subotiz.com/en/integration/hosted#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.subotiz.com/en/integration/hosted#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integration Guide\",\"item\":\"https://docs.subotiz.com/en/integration/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hosted Page\",\"item\":\"https://docs.subotiz.com/en/integration/hosted\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.subotiz.com/en/integration/hosted#article\",\"headline\":\"Hosted Page\",\"name\":\"Hosted Page\",\"url\":\"https://docs.subotiz.com/en/integration/hosted\",\"mainEntityOfPage\":{\"@id\":\"https://docs.subotiz.com/en/integration/hosted#webpage\"},\"dateModified\":\"2026-11-12T05:49:28.312Z\",\"publisher\":{\"@id\":\"https://docs.subotiz.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.subotiz.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Subotiz\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Subotiz\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/integration/hosted.md","siteName":"Subotiz","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","groups":[{"group":"Quick Start","pages":[{"title":"Overview","icon":"panels-top-left","href":"/en/quick-start/overview"},{"title":"Quick Start","icon":"zap","href":"/en/quick-start/quick-start"},{"group":"Environment","icon":"store","pages":[{"title":"Subotiz Merchants","href":"/en/quick-start/subotiz-merchants"},{"title":"Subotiz · PayPal Merchants","href":"/en/quick-start/subotiz-paypal-merchants"}]}]},{"group":"Integration Guide","pages":[{"title":"Overview","icon":"panels-top-left","description":null,"href":"/en/integration/overview"},{"group":"Checkout","icon":"hand-coins","pages":[{"title":"Hosted Page","href":"/en/integration/hosted"},{"title":"Embedded Form","description":null,"href":"/en/integration/embedded-form"}]},{"group":"Payment","icon":"credit-card","pages":[{"title":"Embedded Form","href":"/en/integration/embedded-form-payment"}]},{"group":"App","icon":"smartphone-nfc","pages":[{"title":"In-App Integration Guide","href":"/en/integration/app"}]}]},{"group":"AI Developer","pages":[{"title":"Subotiz MCP","icon":"bot","href":"/en/ai/mcp"},{"title":"Subotiz CLI","icon":"bot-message-square","href":"/en/ai/subotiz-cli"}]},{"group":"Developer Resources","pages":[{"group":"SDK","icon":"braces","pages":[{"title":"Subotiz SDK","href":"/en/resources/subotiz-sdk"},{"title":"Subotiz A/B Test SDK","href":"/en/resources/subotiz-ab-test-sdk"}]},{"group":"Test","icon":"package","pages":[{"title":"Test Card","href":"/en/resources/test-cards"},{"title":"Sandbox Environment","href":"/en/resources/sandbox"}]},{"title":"Payment Error Code","icon":"bug","href":"/en/resources/payment-error-code"}]},{"group":"Webhook","pages":[{"title":"Introduction","icon":"mouse-pointer-click","href":"/en/webhook/introduction-2"},{"group":"Event","icon":"table","pages":[{"group":"V2","pages":[{"title":"Event Types","mode":"wide","href":"/en/webhook/event-types-1"},{"title":"Subscription","href":"/en/webhook/subscription-2"},{"title":"Trade","href":"/en/webhook/trade-2"},{"title":"Invoice","href":"/en/webhook/invoice-2"},{"title":"Refund","href":"/en/webhook/refund-2"},{"title":"Dispute","href":"/en/webhook/dispute-2"},{"title":"Product","href":"/en/webhook/product-2"},{"title":"Price","href":"/en/webhook/price-2"}]},{"group":"V1","pages":[{"title":"Event Types","mode":"wide","href":"/en/webhook/event-types"},{"title":"Subscription","href":"/en/webhook/subscription-1"},{"title":"Invoice","href":"/en/webhook/invoice"},{"title":"Trade","href":"/en/webhook/trade-1"},{"title":"Refund","href":"/en/webhook/refund-1"}]}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/en/api/introduction-1"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/en/faq/workspace-basics"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/integration/hosted"}]}]},"basePath":"","title":"Hosted Page - Subotiz","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Dt3ifMRv.js","DynamicMarkdown-Dgh_e4rL.js","zoom-image-lightbox-DJOZ-2Ph.js","lightbox-handle-r17bVUz3.js"]}