{
    "componentChunkName": "component---src-templates-article-index-js",
    "path": "/developers/android/features/add-to-cart-success-sheet",
    "result": {"data":{"mdx":{"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"AddToCartSuccessSheet\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"The AddToCartSuccessSheet SDK is a bottom sheet that is displayed to your customers after they have successfully added an item to their cart. It shows the added product and supports dynamic content components, allowing you to recommend additional products, display promotions, or any other custom content.\"), mdx(\"h2\", {\n    \"id\": \"start-using-the-addtocartsuccesssheet-sdk\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#start-using-the-addtocartsuccesssheet-sdk\",\n    \"aria-label\": \"start using the addtocartsuccesssheet sdk permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Start using the AddToCartSuccessSheet SDK\"), mdx(\"p\", null, \"The platform module includes the AddToCartSuccessSheet SDK. To show the bottom sheet, use the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"AddToCartSuccessSheetFragment.showAddToCartSuccessSheet\"), \" method, passing the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"AddToCartRequest\"), \", the resulting \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Cart\"), \" and an optional rectified quantity:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-kotlin\"\n  }, \"AddToCartSuccessSheetFragment.showAddToCartSuccessSheet(\\n    activity = activity,\\n    addToCartRequest = addToCartRequest,\\n    cart = cart,\\n    rectifiedQuantity = rectifiedQuantity,\\n)\\n\")), mdx(\"h2\", {\n    \"id\": \"koin-modules\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#koin-modules\",\n    \"aria-label\": \"koin modules permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Koin modules\"), mdx(\"p\", null, \"The AddToCartSuccessSheet SDK dependencies are injected using Koin. AddToCartSuccessSheet SDK provides the default dependencies definitions via this Koin module:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"addToCartSuccessSheetModule\"))), mdx(\"h2\", {\n    \"id\": \"dynamic-content\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#dynamic-content\",\n    \"aria-label\": \"dynamic content permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Dynamic content\"), mdx(\"p\", null, \"The AddToCartSuccessSheet renders dynamic content components delivered through the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Cart.slots\"), \" for the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"addToCartSheet\"), \" slot. This allows you to configure the content of the bottom sheet remotely without changing the client app.\"));\n}\n;\nMDXContent.isMDXComponent = true;","excerpt":"The AddToCartSuccessSheet SDK is a bottom sheet that is displayed to your customers after they have successfully added an item to their cart…","fields":{"lastModified":"2026-05-12 15:56:53 +0200\n","slug":"/developers/android/features/add-to-cart-success-sheet"},"frontmatter":{"date":null,"excerpt":null,"published":null,"title":"AddToCartSuccessSheet"},"headings":[{"depth":2,"value":"Start using the AddToCartSuccessSheet SDK"},{"depth":2,"value":"Koin modules"},{"depth":2,"value":"Dynamic content"}],"rawBody":"---\ntitle: AddToCartSuccessSheet\n---\n\nThe AddToCartSuccessSheet SDK is a bottom sheet that is displayed to your customers after they have successfully added an item to their cart. It shows the added product and supports dynamic content components, allowing you to recommend additional products, display promotions, or any other custom content.\n\n## Start using the AddToCartSuccessSheet SDK\n\nThe platform module includes the AddToCartSuccessSheet SDK. To show the bottom sheet, use the `AddToCartSuccessSheetFragment.showAddToCartSuccessSheet` method, passing the `AddToCartRequest`, the resulting `Cart` and an optional rectified quantity:\n\n```kotlin\nAddToCartSuccessSheetFragment.showAddToCartSuccessSheet(\n    activity = activity,\n    addToCartRequest = addToCartRequest,\n    cart = cart,\n    rectifiedQuantity = rectifiedQuantity,\n)\n```\n\n## Koin modules\n\nThe AddToCartSuccessSheet SDK dependencies are injected using Koin. AddToCartSuccessSheet SDK provides the default dependencies definitions via this Koin module:\n\n* `addToCartSuccessSheetModule`\n\n## Dynamic content\n\nThe AddToCartSuccessSheet renders dynamic content components delivered through the `Cart.slots` for the `addToCartSheet` slot. This allows you to configure the content of the bottom sheet remotely without changing the client app.\n","timeToRead":1}},"pageContext":{"id":"6329103c-b246-5900-8887-8624899fb099","breadcrumb":{"location":"/developers/android/features/add-to-cart-success-sheet","crumbs":[{"pathname":"/","crumbLabel":"Home"},{"pathname":"/developers","crumbLabel":"developers"},{"pathname":"/developers/android","crumbLabel":"android"},{"pathname":"/developers/android/features","crumbLabel":"features"},{"pathname":"/developers/android/features/add-to-cart-success-sheet","crumbLabel":"add-to-cart-success-sheet"}]}}},
    "staticQueryHashes": ["2937047697","3649515864","63159454"]}