Subotiz supports completing the checkout process through an embedded form (Embedded Mode). It provides a low-code payment integration solution, allowing you to easily create customizable payment forms and quickly implement the checkout flow.
Integration Scenario Demo
This page explains how to implement the Embedded Checkout integration. This method enables you to rapidly implement an integrated checkout experience by leveraging Subotiz’s product, pricing, and payment capabilities.If you only need to integrate payment processing, please refer to Payment Mode.
Embedding a Complete Checkout Page
Demo of embedding a complete page
Embedding Partial Components
Demo of embedding partial components
Checkout Flow
When a customer is ready to complete a purchase, initiate a checkout request from your client-side application to your server. Your server should use the Subotiz API to create a Checkout Session, passing the order_id (your platform’s unique order identifier) as a parameter to facilitate subsequent association with the trade order.
The Checkout Session will provide a Session ID. Your client-side application can then use the SDKs to invoke and display the Subotiz payment form to the customer.
The customer will enter their payment details into the Subotiz form and complete the transaction.
After the transaction is completed, Subotiz will notify your server via a webhook. This notification includes a payment success event containing the order_id passed during session creation, enabling you to correlate your platform’s order with Subotiz’s trade order.
Integration Steps
1
Create Products
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 a Payment Success Page
Your application needs to provide a publicly accessible page to display after a successful payment. After the customer completes the payment, Subotiz will redirect them to this page.
3
Provide a Webhook Endpoint
Create an endpoint to receive events for your account. When an event occurs, Subotiz will send an HTTPS POST request containing a JSON-formatted event object to this Webhook endpoint. You can use these events to keep your system’s business data in sync.
4
Integrate the Embedded Form
Your client-side application can use the Subotiz SDK to integrate Subotiz Checkout.
<div id="your_domElement"> <!-- The checkout page will be displayed here --></div>
3. Create Checkout Session
Use the Subotiz API to create a Checkout Session , and return the response to your frontend.Example: Creating a Checkout Session in Embedded Mode
curl --location 'https://api.subotiz.com/api/v1/session' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer {your_api_key}' \--header 'Request-Id: dd7fb126-be31-4144-a1af-e4bf4203eb92' \--data-raw '{ "access_no": "77d52a21dc032b4", "sub_merchant_id": "2816433", "order_id": "123e4567-e89b-12-a456-426622201a", "payer_id": "customer_id_001", "customer_id": "", "email": "[email protected]", "line_items": [ # Product info (required for checkout mode) { "price_id": "543321366326164797", "quantity": "1" } ], "return_url": "https://www.subotiz.com", "cancel_url": "https://www.subotiz.com", "mode": "checkout", # Choose 'checkout' mode when product data is present "integration_method": "embedded", # Select embedded integration "redirect_on_completion": "if_required" # Choose redirection behavior based on business needs; this example redirects only when necessary }'
Key Parameters
order_id: Your platform’s internal order ID, used for subsequent business data correlation.
integration_method: Set to embedded to use the embedded form integration method.
return_url: The URL the customer is redirected to after a successful payment.
mode: Choose checkout mode when product data is present.
4. Initialize the Checkout Page
// After importing via the script tag, Subotiz is automatically attached to the window objectconst { Subotiz} = window;// Create an SDK instanceconst subotiz = Subotiz();// Initialize checkoutconst checkout = await subotiz.initEmbeddedCheckout({ fetchSessionUrl: async() => { // Fetch the sessionUrl from your server const response = await fetch('/api/session'); const data = await response.json(); return data.sessionUrl; }, environment: 'SANDBOX',// 'SANDBOX' | 'PRODUCTION' // The callback function when the payment completed only triggers when `redirect_on_completion` is set to `if_required` during Checkout session creation onComplete: () => { console.log('Payment completed!'); }});// Mount to the pagecheckout.mount('#checkout-container');
Enable Apple Pay
With the Embedded Form, the Apple Pay button appears on your own website, so Apple checks your website’s domain. Complete domain verification before going live. If you haven’t added your domain, neither the Subotiz admin nor the API will show a warning; Apple Pay simply won’t appear at checkout.
If you use the Hosted Page (including payment links and a custom checkout domain connected to Subotiz), Subotiz verifies the domain automatically and you can skip these steps.
1
Identify the domains to verify
Verify the domain that appears in your customer’s browser address bar when the checkout page is open. Each hostname must be verified separately. For example, example.com and www.example.com are two different hostnames, and regional subdomains such as us.example.com must also be verified separately.
2
Download the verification file
In the Subotiz admin, go to Payment > Payment methods (if there is no Payment menu, go to Settings > Payment methods), click Payment method domains in the top-right corner, and then click Add domain. Under Payment provider, choose the provider that currently processes Apple Pay (selected by default), then click the download icon next to Apple Pay verification file. The file depends only on the payment provider, not on the domain, so you can download it first and hand it to your developers. Don’t click Save yet; you can close the dialog.If you don’t see the Payment method domains button, first connect a payment provider that supports Apple Pay.
3
Host the file on your website
Host the file, unchanged, at https://your-domain/.well-known/apple-developer-merchantid-domain-association. Don’t rename it, add a file extension, edit its contents, or forward this URL to another server. Then open the URL in a browser: you should see a long string of characters. If you see a web page, a redirect, or an error, the file isn’t being served correctly. See Troubleshooting below.
4
Add the domain and check the registration result
Once the file URL opens correctly, click Add domain again, enter the domain only (without https:// or a path), choose the same payment provider, and click Save. Subotiz registers the domain with the payment provider right away. In the Payment method domains list, check that Registration result is Success. If it shows Failure, hover over it to see the reason, fix the issue, and click Reregister.
5
Check that Apple Pay appears
Open your checkout page on an iPhone running iOS 17 or later, or in Safari 17 or later on a Mac, and check that the Apple Pay button appears. When testing, use a device whose Apple ID is not registered in mainland China, make sure Apple Wallet contains a valid card, and use an amount above the minimum charge amount of your payment channel. Otherwise Apple Pay won’t appear even if everything is configured correctly.
Things to Keep in Mind
Keep the verification file in place permanently. Apple re-checks domains periodically. If the file is removed or overwritten, Apple Pay will stop appearing.
To switch the payment provider that processes Apple Pay, first add your domains for the new provider and replace the file with the new provider’s verification file (each provider has its own file). Once Registration result shows Success, switch the provider on the Payment methods page right away. Subotiz doesn’t register your domains with the new provider automatically when you switch.
When you add or change a website domain, repeat these steps for the new domain.
The Embedded Form doesn’t support Apple Pay on iOS versions earlier than 17 (or Safari versions earlier than 17 on Mac). If many of your customers use these versions and Apple Pay is a primary payment method, use the Hosted Page instead.
Troubleshooting
What you see
Likely cause
What to do
The downloaded file has an extension (such as .txt), or the browser shows the file’s contents instead of downloading it
Browsers handle downloads differently
Remove the extension. If the contents are shown, save them as a file named apple-developer-merchantid-domain-association
The file URL shows your website’s home page
Your site sends every path to front-end routing, which is common in single-page apps
Configure the /.well-known/ path to serve the static file directly
The file URL redirects, for example to the www domain or to a URL with a trailing slash
Your server or CDN has a redirect rule
Make this URL return the file directly. You only need to verify the domains your customers actually use to open the checkout page. If customers reach checkout on both the www and non-www domains, host the file on both and add both
The file URL returns 403 or 404
Your server blocks folders whose names start with a dot, or the file path or name is wrong
Allow access to the /.well-known/ folder and check the file path and name
The file opens in a browser, but Registration result is Failure
A CDN or firewall (such as a Cloudflare bot challenge) is blocking Apple’s verification request
Turn off the bot challenge for this URL, or allow Apple’s verification IP addresses (see Apple’s Setting up your server page)
Registration fails with “This domain has already been registered by another merchant”
The domain is already registered under another Subotiz merchant account
Contact your account manager
Registration result is Success, but Apple Pay still doesn’t appear
The file URL no longer opens or its contents have changed; the test conditions aren’t met; or your page wraps the Embedded Form in an iframe without allow="payment"
Open the file URL again and check that you still see the file’s contents. Check the test conditions in step 5. If your page wraps the Embedded Form in iframes, add allow="payment" to every one of them. For other reasons, see the FAQ Why aren’t Apple Pay or Google Pay showing at checkout for my customers?
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.4428","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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/embedded-form","slug":"/en/integration/embedded-form","pageMetadata":{"title":"Embedded Form","description":null,"href":"/en/integration/embedded-form"},"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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,Mermaid,OptimizedImage,Step,Steps,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Subotiz supports completing the checkout process through an embedded form (Embedded Mode). It provides a low-code payment integration solution, allowing you to easily create customizable payment forms and quickly implement the checkout flow.`}),`\n`,_jsx(Heading,{level:`2`,id:`integration-scenario-demo`,children:`Integration Scenario Demo`}),`\n`,_jsx(_components.p,{children:`This page explains how to implement the Embedded Checkout integration. This method enables you to rapidly implement an integrated checkout experience by leveraging Subotiz’s product, pricing, and payment capabilities.`}),`\n`,_jsxs(_components.p,{children:[`If you only need to integrate payment processing, please refer to `,_jsx(_components.a,{href:`/en/integration/embedded-form-payment`,children:`Payment Mode`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`embedding-a-complete-checkout-page`,children:`Embedding a Complete Checkout Page`}),`\n`,_jsx(Frame,{caption:`Demo of embedding a complete page`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=f9be8455b55694873f532007bd7d8c97`,\"data-og-width\":`2948`,width:`2948`,\"data-og-height\":`1700`,height:`1700`,\"data-path\":`images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=38800071d8fe41367fe75da0342db7be 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=8de6683b69fdf316d6463ce773bce235 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=a99aac66504c5bc1910ba08cd9f0c471 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=9c1f2169a100bd662f547b58afd84b80 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=c2b2bcfaf14863c99298fcabd0241fa0 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/cee483fb-2c8904cf62ff30ea77e87dc94963f5e5087a3a107c52ab624e579cbb-20250830-145318.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=621e2bf031c40fa846c238207f84768e 2500w`})}),`\n`,_jsx(Heading,{level:`4`,id:`embedding-partial-components`,children:`Embedding Partial Components`}),`\n`,_jsx(Frame,{caption:`Demo of embedding partial components`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=2df3d457c6d448a662b3bf1f14fff091`,\"data-og-width\":`1982`,width:`1982`,\"data-og-height\":`1336`,height:`1336`,\"data-path\":`images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=39aa3ef9894106c458592c339040ca4e 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=2c9bc7593c9bdb3c66a3f801ab772414 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=f1f4e3e50b1d95835bec00739a56199c 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=7ddc4c51235bf89ec8cdc52767b7430d 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=4e74b567bfbe5f936471f95be60d26e4 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/bf6f69c6-767a63ee08ef17927b83fdde843508f726c696261c17739299aa9679-20250830-145624.jpeg?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=9c31f315fb7b02984da5ca718626d5a7 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`checkout-flow`,children:`Checkout Flow`}),`\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 use the Subotiz API to create a Checkout Session, passing the `,_jsx(_components.code,{children:`order_id`}),` (your platform’s unique order identifier) as a parameter to facilitate subsequent association with the trade order.`]}),`\n`,_jsx(_components.li,{children:`The Checkout Session will provide a Session ID. Your client-side application can then use the SDKs to invoke and display the Subotiz payment form to the customer.`}),`\n`,_jsx(_components.li,{children:`The customer will enter their payment details into the Subotiz form and complete the transaction.`}),`\n`,_jsxs(_components.li,{children:[`After the transaction is completed, Subotiz will notify your server via a webhook. This notification includes a payment success event containing the `,_jsx(_components.code,{children:`order_id`}),` passed during session creation, enabling you to correlate your platform’s order with Subotiz’s trade order.`]}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant Customer as Customer\n participant Client as Merchant Client\n participant Server as Merchant Server\n participant SubotizAPI as Subotiz API\n\n Customer->>Client: 1. Initiate Order\n Client->>Server: 2. Request session ID\n Server->>SubotizAPI: 3. Create Checkout Session\n SubotizAPI-->>Server: 4. Return session information\n Server-->>Client: 5. Return session id\n Client->>Client: 6. Invoke Form Using SDKs\n Client-->>Customer: 7. Display Payment Form\n Customer->>Client: 8. Enter Payment Information \u0026 Confirm\n Client->>Client: 9. Process Payment\n Client-->>Customer: 10. Return Payment Result\n SubotizAPI->>Server: Webhook Noification with Payment Result`}),`\n`,_jsx(Heading,{level:`2`,id:`integration-steps`,children:`Integration Steps`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create Products`,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/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=48ad1f39aa87d7e1accf80677d0d1270`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`853`,height:`853`,\"data-path\":`images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=7067caa57b6943662a5987d476ad5655 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=53a816899e4af496367cf36cdd3d7791 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=539d281df214b042289adfe029fef92d 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=7314238299d5b7f7460d6becca9576c2 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=bf5ebb87b1a94b521040daa156ca9660 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/1c938fff-3169b0e7f65b7fe44464c9c7fcb5a9cd05be44b2dff67e2109484b72-image.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=65d03da88727398065c1f0dee41dc6ed 2500w`})})]}),_jsx(Step,{title:`Provide a Payment Success Page`,children:_jsx(_components.p,{children:`Your application needs to provide a publicly accessible page to display after a successful payment. After the customer completes the payment, Subotiz will redirect them to this page.`})}),_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, Subotiz will send an HTTPS POST request containing a JSON-formatted event object to this `,_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:`Integrate the Embedded Form`,children:[_jsxs(_components.p,{children:[`Your client-side application can use the `,_jsx(_components.a,{href:`/en/resources/subotiz-sdk`,children:`Subotiz SDK`}),` to integrate Subotiz Checkout.`]}),_jsx(Heading,{level:`4`,id:`1-load-subotiz-js`,children:`1. Load Subotiz.js`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,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:`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://checkout.subotiz.com/static/subotiz/v0/subotiz.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(Heading,{level:`4`,id:`2-provide-a-container-node`,children:`2. Provide a Container Node`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:`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:`\"your_domElement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` \u003c!-- The checkout page will be displayed here -->`})}),`\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:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(Heading,{level:`4`,id:`3-create-checkout-session`,children:`3. Create Checkout Session`}),_jsxs(_components.p,{children:[`Use 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 `}),`, and return the response to your frontend.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example: Creating a Checkout Session in Embedded Mode`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`23`,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:`23`,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: dd7fb126-be31-4144-a1af-e4bf4203eb92'`}),_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:` \"access_no\": \"77d52a21dc032b4\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sub_merchant_id\": \"2816433\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"order_id\": \"123e4567-e89b-12-a456-426622201a\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payer_id\": \"customer_id_001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_id\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"[email protected]\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line_items\": [ # Product info (required for checkout mode)`})}),`\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:` \"price_id\": \"543321366326164797\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": \"1\"`})}),`\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:` ],`})}),`\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:` \"cancel_url\": \"https://www.subotiz.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"checkout\", # Choose 'checkout' mode when product data is present`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"integration_method\": \"embedded\", # Select embedded integration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redirect_on_completion\": \"if_required\" # Choose redirection behavior based on business needs; this example redirects only when necessary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\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:`embedded`}),` to use the embedded form integration method.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`return_url`}),`: The URL the customer is redirected to after a successful payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`mode`}),`: Choose `,_jsx(_components.code,{children:`checkout`}),` mode when product data is present.`]}),`\n`]}),_jsx(Heading,{level:`4`,id:`4-initialize-the-checkout-page`,children:`4. Initialize the Checkout Page`}),_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// After importing via the script tag, Subotiz is automatically attached to the window object`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` Subotiz`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create an SDK instance`})}),`\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:` subotiz`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Subotiz`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Initialize checkout`})}),`\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:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subotiz`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initEmbeddedCheckout`}),_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:` fetchSessionUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Fetch the sessionUrl from your server`})}),`\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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/api/session'`}),_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:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_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\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sessionUrl`}),_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:` environment:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'SANDBOX'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 'SANDBOX' | 'PRODUCTION'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\" // The callback function when the payment completed only triggers when `redirect_on_completion` is set to `if_required` during Checkout session creation\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onComplete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_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:` 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:`'Payment completed!'`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Mount to the page`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`mount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'#checkout-container'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`enable-apple-pay`,children:`Enable Apple Pay`}),`\n`,_jsx(_components.p,{children:`With the Embedded Form, the Apple Pay button appears on your own website, so Apple checks your website’s domain. Complete domain verification before going live. If you haven’t added your domain, neither the Subotiz admin nor the API will show a warning; Apple Pay simply won’t appear at checkout.`}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`If you use the Hosted Page (including payment links and a custom checkout domain connected to Subotiz), Subotiz verifies the domain automatically and you can skip these steps.`})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Identify the domains to verify`,children:_jsxs(_components.p,{children:[`Verify the domain that appears in your customer’s browser address bar when the checkout page is open. Each hostname must be verified separately. For example, example.com and `,_jsx(_components.a,{href:`http://www.example.com`,children:`www.example.com`}),` are two different hostnames, and regional subdomains such as us.example.com must also be verified separately.`]})}),_jsxs(Step,{title:`Download the verification file`,children:[_jsxs(_components.p,{children:[`In the Subotiz admin, go to `,_jsx(_components.strong,{children:`Payment > Payment methods`}),` (if there is no Payment menu, go to `,_jsx(_components.strong,{children:`Settings > Payment methods`}),`), click `,_jsx(_components.strong,{children:`Payment method domains`}),` in the top-right corner, and then click `,_jsx(_components.strong,{children:`Add domain`}),`. Under `,_jsx(_components.strong,{children:`Payment provider`}),`, choose the provider that currently processes Apple Pay (selected by default), then click the download icon next to `,_jsx(_components.strong,{children:`Apple Pay verification file`}),`. The file depends only on the payment provider, not on the domain, so you can download it first and hand it to your developers. Don’t click `,_jsx(_components.strong,{children:`Save`}),` yet; you can close the dialog.`]}),_jsxs(_components.p,{children:[`If you don’t see the `,_jsx(_components.strong,{children:`Payment method domains`}),` button, first connect a payment provider that supports Apple Pay.`]})]}),_jsx(Step,{title:`Host the file on your website`,children:_jsxs(_components.p,{children:[`Host the file, unchanged, at `,_jsx(_components.code,{children:`https://your-domain/.well-known/apple-developer-merchantid-domain-association`}),`. Don’t rename it, add a file extension, edit its contents, or forward this URL to another server. Then open the URL in a browser: you should see a long string of characters. If you see a web page, a redirect, or an error, the file isn’t being served correctly. See Troubleshooting below.`]})}),_jsx(Step,{title:`Add the domain and check the registration result`,children:_jsxs(_components.p,{children:[`Once the file URL opens correctly, click `,_jsx(_components.strong,{children:`Add domain`}),` again, enter the domain only (without `,_jsx(_components.code,{children:`https://`}),` or a path), choose the same payment provider, and click `,_jsx(_components.strong,{children:`Save`}),`. Subotiz registers the domain with the payment provider right away. In the `,_jsx(_components.strong,{children:`Payment method domains`}),` list, check that `,_jsx(_components.strong,{children:`Registration result`}),` is `,_jsx(_components.strong,{children:`Success`}),`. If it shows `,_jsx(_components.strong,{children:`Failure`}),`, hover over it to see the reason, fix the issue, and click `,_jsx(_components.strong,{children:`Reregister`}),`.`]})}),_jsx(Step,{title:`Check that Apple Pay appears`,children:_jsx(_components.p,{children:`Open your checkout page on an iPhone running iOS 17 or later, or in Safari 17 or later on a Mac, and check that the Apple Pay button appears. When testing, use a device whose Apple ID is not registered in mainland China, make sure Apple Wallet contains a valid card, and use an amount above the minimum charge amount of your payment channel. Otherwise Apple Pay won’t appear even if everything is configured correctly.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`things-to-keep-in-mind`,children:`Things to Keep in Mind`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Keep the verification file in place permanently. Apple re-checks domains periodically. If the file is removed or overwritten, Apple Pay will stop appearing.`}),`\n`,_jsxs(_components.li,{children:[`To switch the payment provider that processes Apple Pay, first add your domains for the new provider and replace the file with the new provider’s verification file (each provider has its own file). Once `,_jsx(_components.strong,{children:`Registration result`}),` shows `,_jsx(_components.strong,{children:`Success`}),`, switch the provider on the `,_jsx(_components.strong,{children:`Payment methods`}),` page right away. Subotiz doesn’t register your domains with the new provider automatically when you switch.`]}),`\n`,_jsx(_components.li,{children:`When you add or change a website domain, repeat these steps for the new domain.`}),`\n`,_jsx(_components.li,{children:`The Embedded Form doesn’t support Apple Pay on iOS versions earlier than 17 (or Safari versions earlier than 17 on Mac). If many of your customers use these versions and Apple Pay is a primary payment method, use the Hosted Page instead.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`What you see`}),_jsx(_components.th,{children:`Likely cause`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The downloaded file has an extension (such as .txt), or the browser shows the file’s contents instead of downloading it`}),_jsx(_components.td,{children:`Browsers handle downloads differently`}),_jsxs(_components.td,{children:[`Remove the extension. If the contents are shown, save them as a file named `,_jsx(_components.code,{children:`apple-developer-merchantid-domain-association`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The file URL shows your website’s home page`}),_jsx(_components.td,{children:`Your site sends every path to front-end routing, which is common in single-page apps`}),_jsxs(_components.td,{children:[`Configure the `,_jsx(_components.code,{children:`/.well-known/`}),` path to serve the static file directly`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The file URL redirects, for example to the www domain or to a URL with a trailing slash`}),_jsx(_components.td,{children:`Your server or CDN has a redirect rule`}),_jsx(_components.td,{children:`Make this URL return the file directly. You only need to verify the domains your customers actually use to open the checkout page. If customers reach checkout on both the www and non-www domains, host the file on both and add both`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The file URL returns 403 or 404`}),_jsx(_components.td,{children:`Your server blocks folders whose names start with a dot, or the file path or name is wrong`}),_jsxs(_components.td,{children:[`Allow access to the `,_jsx(_components.code,{children:`/.well-known/`}),` folder and check the file path and name`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The file opens in a browser, but `,_jsx(_components.strong,{children:`Registration result`}),` is `,_jsx(_components.strong,{children:`Failure`})]}),_jsx(_components.td,{children:`A CDN or firewall (such as a Cloudflare bot challenge) is blocking Apple’s verification request`}),_jsxs(_components.td,{children:[`Turn off the bot challenge for this URL, or allow Apple’s verification IP addresses (see Apple’s `,_jsx(_components.a,{href:`https://developer.apple.com/documentation/applepaywebmerchantregistrationapi/setting-up-your-server`,children:`Setting up your server`}),` page)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Registration fails with “This domain has already been registered by another merchant”`}),_jsx(_components.td,{children:`The domain is already registered under another Subotiz merchant account`}),_jsx(_components.td,{children:`Contact your account manager`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Registration result`}),` is `,_jsx(_components.strong,{children:`Success`}),`, but Apple Pay still doesn’t appear`]}),_jsxs(_components.td,{children:[`The file URL no longer opens or its contents have changed; the test conditions aren’t met; or your page wraps the Embedded Form in an iframe without `,_jsx(_components.code,{children:`allow=\"payment\"`})]}),_jsxs(_components.td,{children:[`Open the file URL again and check that you still see the file’s contents. Check the test conditions in step 5. If your page wraps the Embedded Form in iframes, add `,_jsx(_components.code,{children:`allow=\"payment\"`}),` to every one of them. For other reasons, see the FAQ `,_jsx(_components.a,{href:`/en/faq/transaction`,children:`Why aren’t Apple Pay or Google Pay showing at checkout for my customers?`})]})]})]})]})]})}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":"Embedded Form","description":null,"href":"/en/integration/embedded-form"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Integration Scenario Demo","slug":"integration-scenario-demo","depth":2,"children":[{"title":"Embedding a Complete Checkout Page","slug":"embedding-a-complete-checkout-page","depth":4,"children":[]},{"title":"Embedding Partial Components","slug":"embedding-partial-components","depth":4,"children":[]}]},{"title":"Checkout Flow","slug":"checkout-flow","depth":2,"children":[]},{"title":"Integration Steps","slug":"integration-steps","depth":2,"children":[{"title":"1. Load Subotiz.js","slug":"1-load-subotiz-js","depth":4,"children":[]},{"title":"2. Provide a Container Node","slug":"2-provide-a-container-node","depth":4,"children":[]},{"title":"3. Create Checkout Session","slug":"3-create-checkout-session","depth":4,"children":[]},{"title":"Key Parameters","slug":"key-parameters","depth":4,"children":[]},{"title":"4. Initialize the Checkout Page","slug":"4-initialize-the-checkout-page","depth":4,"children":[]}]},{"title":"Enable Apple Pay","slug":"enable-apple-pay","depth":2,"children":[{"title":"Things to Keep in Mind","slug":"things-to-keep-in-mind","depth":3,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/shoplazza-92a3a725/01e940adff1c3ce9/floating-widgets.js"],"subdomain":"shoplazza-92a3a725","siteName":"Subotiz","title":"Embedded Form - Subotiz","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/integration/embedded-form","matchLevel":0},"zh":{"href":"/zh/integration/embedded-form","matchLevel":1}}},"lastModified":"2026-11-12T05:49:28.322Z","originalFileLocation":"en/integration/embedded-form.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=\"Embedded Form - 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/embedded-form\">\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=Embedded+Form\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=d29fee0a7fe6e5dcaf59a32e957057590d26dadded2d8a29dc02079749d71ad7\">\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=\"Embedded Form - Subotiz\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shoplazza-92a3a725.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Embedded+Form\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=d29fee0a7fe6e5dcaf59a32e957057590d26dadded2d8a29dc02079749d71ad7\">\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/embedded-form\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/integration/embedded-form.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.subotiz.com/en/integration/embedded-form\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.subotiz.com/zh/integration/embedded-form\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.subotiz.com/en/integration/embedded-form\">\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/embedded-form#webpage\",\"url\":\"https://docs.subotiz.com/en/integration/embedded-form\",\"name\":\"Embedded Form\",\"dateModified\":\"2026-11-12T05:49:28.322Z\",\"isPartOf\":{\"@id\":\"https://docs.subotiz.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.subotiz.com/en/integration/embedded-form#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.subotiz.com/en/integration/embedded-form#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integration Guide\",\"item\":\"https://docs.subotiz.com/en/integration/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checkout\",\"item\":\"https://docs.subotiz.com/en/integration/hosted\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Embedded Form\",\"item\":\"https://docs.subotiz.com/en/integration/embedded-form\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.subotiz.com/en/integration/embedded-form#article\",\"headline\":\"Embedded Form\",\"name\":\"Embedded Form\",\"url\":\"https://docs.subotiz.com/en/integration/embedded-form\",\"mainEntityOfPage\":{\"@id\":\"https://docs.subotiz.com/en/integration/embedded-form#webpage\"},\"dateModified\":\"2026-11-12T05:49:28.322Z\",\"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/embedded-form.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","href":"/en/integration/overview"},{"group":"Checkout","icon":"hand-coins","pages":[{"title":"Hosted Page","description":null,"href":"/en/integration/hosted"},{"title":"Embedded Form","href":"/en/integration/embedded-form"}]},{"group":"Payment","icon":"credit-card","pages":[{"title":"Embedded Form","description":null,"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/embedded-form"}]}]},"basePath":"","title":"Embedded Form - Subotiz","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BhbIEdST.js","DynamicMarkdown-DoPsKgYC.js","zoom-image-lightbox-D-vTqM_C.js","lightbox-handle-r17bVUz3.js"]}