{"templateId":"markdown","versions":[{"version":"production","label":"November '26","link":"/docs/payments/lightning-out-2-0-dynamic-content","default":true,"active":true,"folderId":"a2557b8d"}],"sharedDataIds":{"sidebar":"sidebar-docs/@production/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","procedure","procedure-step"]},"redocly_category":"Accept & Collect","type":"markdown"},"seo":{"title":"Lightning Out 2.0 dynamic content","description":"Lightning Out 2.0 supports dynamic content, allowing you to pass parameters from your external website back to Salesforce to control how a component behaves based on the provided data.","siteUrl":"https://docs.findock.com","keywords":"payment experiences, lightning out, dynamic content, parameters"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"lightning-out-20-dynamic-content","__idx":0},"children":["Lightning Out 2.0 dynamic content"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lightning Out 2.0 supports ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://developer.salesforce.com/docs/platform/lwc/guide/lightning-out-component-properties.html#define-component-styles-and-properties","target":"_blank"},"children":["passing parameters"]}," to Lightning Web Components (LWCs), enabling you to configure a component dynamically based on external data. For example, an external page could provide a contact, amount and language to control how the LWC is presented. When the LWC is used as a container for a Screen Flow, you can also pass parameters further into your Flow logic."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To create dynamic content by passing parameters, you have three layers to configure:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Expose parameters so that the external website can use them."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Handle the parameters inside the LWC."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Pass the parameters to a Screen Flow."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before we continue, keep in mind the following:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Only custom parameters declared with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]}," can be used by the external website."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Custom names starting with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["_"]}," are not supported by Lightning Out 2.0."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Parameters passed to Salesforce are external HTML attributes, so make sure values are validated or converted inside the component. For example, an amount received as a string needs to be converted before it can be used as a numeric Flow variable."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"expose-parameters-for-dynamic-content","__idx":1},"children":["Expose parameters for dynamic content"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Any value that should be configurable from outside your LWC must be exposed as a public property using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]}," decorator."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["First, import ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["api"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"import { LightningElement, api } from 'lwc';\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Then define the properties that should be exposed. In this example, the component exposes three public parameters:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contactId"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentMethod"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"export default class FlowContainer extends LightningElement {\n    @api contactId;\n    @api amount;\n    @api paymentMethod;\n}\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lightning Out 2.0 mirrors these public LWC properties as attributes on the Lightning Out web component that runs on the external page. Without ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]},", the property remains internal to the LWC and cannot be set from the Lightning Out host page."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your external page needs to use attribute names that are written differently from the property names in JavaScript. JavaScript properties use camelCase for the parameters, while the corresponding HTML uses lowercase words that separated by hyphens. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contactId"]}," becomes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contact-id"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentMethod"]},"becomes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment-method"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<c-flow-container\n    contact-id=\"003XXXXXXXXXXXX\"\n    payment-method=\"card\">\n</c-flow-container>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Any custom parameter name can be used by Lightning Out 2.0 unless the it starts with an underscore (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["_"]},"). If an unsupported attribute name is provided, Lightning Out does not throw an error. The parameter simply isn't passed to the embedded LWC."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once the public properties exist, there are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["three ways to assign values"]},". Each method services a different purpose:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Host page markup"]},": suitable when the external website already knows the value when it renders the component"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Programmatic methods"]},": suitable when the value is dynamic, calculated at runtime, or depends on user input"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Lightning Out 2.0 App Manager"]},": suitable for configuration that belongs to the Lightning Out application itself and is expected to remain static."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We go through each option in the following sections."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"set-values-directly-in-the-host-page-markup","__idx":2},"children":["Set values directly in the host page markup"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The external website can provide values as attributes on the Lightning Out web component."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<c-flow-container\n    contact-id=\"003XXXXXXXXXXXX\"\n    amount=\"50\"\n    payment-method=\"card\">\n</c-flow-container>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the simplest option when the values are already known when the page is rendered."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, a website generating a donation page may already know the donor (contact), campaign, amount and language. Each of these can be handled has parameter values that the page includes directly in the generated component markup."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce refers to this as ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["setting the component properties declaratively"]}," on the host page."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"set-values-programmatically","__idx":3},"children":["Set values programmatically"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The external page can also create or update the Lightning Out component through JavaScript and standard DOM APIs."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"const component = document.querySelector('c-flow-container');\n\ncomponent.setAttribute('contact-id', '003XXXXXXXXXXXX');\ncomponent.setAttribute('amount', '100');\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is useful when a value is calculated or becomes available only after the page has loaded."]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR;\n  A(User selects an amount) --> B(Website JavaScript receives the selection)\n  B(Website JavaScript receives the selection) --> C(JavaScript updates amount on the Lightning Out component)\n","diagramHtml":"<svg id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 774.078125px;\" viewBox=\"0 0 774.078125 118\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .error-icon{fill:#552222;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .error-text{fill:#552222;stroke:#552222;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-thickness-normal{stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-thickness-thick{stroke-width:3.5px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-pattern-solid{stroke-dasharray:0;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-pattern-dashed{stroke-dasharray:3;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edge-pattern-dotted{stroke-dasharray:2;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .marker{fill:#333333;stroke:#333333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .marker.cross{stroke:#333333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf p{margin:0;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster-label text{fill:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster-label span{color:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster-label span p{background-color:transparent;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .label text,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf span{fill:#333;color:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node rect,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node circle,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node ellipse,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node polygon,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .rough-node .label text,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node .label text,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .image-shape .label,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .icon-shape .label{text-anchor:middle;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .rough-node .label,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node .label,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .image-shape .label,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .icon-shape .label{text-align:center;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node.clickable{cursor:pointer;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .arrowheadPath{fill:#333333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .flowchart-link{stroke:#333333;fill:none;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster text{fill:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .cluster span{color:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf rect.text{fill:none;stroke-width:0;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .icon-shape,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .icon-shape p,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .icon-shape .label rect,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf .node .neo-node{stroke:#9370DB;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node rect,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].cluster rect,#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M206.078,59L210.245,59C214.411,59,222.745,59,230.411,59C238.078,59,245.078,59,248.578,59L252.078,59\" id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MjA2LjA3ODEyNSwieSI6NTl9LHsieCI6MjMxLjA3ODEyNSwieSI6NTl9LHsieCI6MjU2LjA3ODEyNSwieSI6NTl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointEnd)\"></path><path d=\"M486.078,59L490.245,59C494.411,59,502.745,59,510.411,59C518.078,59,525.078,59,528.578,59L532.078,59\" id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6NDg2LjA3ODEyNSwieSI6NTl9LHsieCI6NTExLjA3ODEyNSwieSI6NTl9LHsieCI6NTM2LjA3ODEyNSwieSI6NTl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-flowchart-A-0\" data-look=\"classic\" transform=\"translate(107.0390625, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-99.0390625\" y=\"-27\" width=\"198.078125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-84.0390625, -12)\"><rect></rect><foreignObject width=\"168.078125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>User selects an amount</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-flowchart-B-1\" data-look=\"classic\" transform=\"translate(371.078125, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-115\" y=\"-39\" width=\"230\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Website JavaScript receives the selection</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-flowchart-C-3\" data-look=\"classic\" transform=\"translate(651.078125, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-115\" y=\"-51\" width=\"230\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>JavaScript updates amount on the Lightning Out component</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-44ef5de658959c9a3be387bc3e51d4bd5b40b689c0a9dc397f637525b4dff9cf-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs></svg>","diagramHtmlDark":"<svg id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 774.078125px;\" viewBox=\"0 0 774.078125 118\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#ccc;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .error-icon{fill:#a44141;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .error-text{fill:#ddd;stroke:#ddd;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-thickness-normal{stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-thickness-thick{stroke-width:3.5px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-pattern-solid{stroke-dasharray:0;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-pattern-dashed{stroke-dasharray:3;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edge-pattern-dotted{stroke-dasharray:2;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .marker{fill:lightgrey;stroke:lightgrey;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .marker.cross{stroke:lightgrey;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f p{margin:0;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster-label text{fill:#F9FFFE;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster-label span{color:#F9FFFE;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster-label span p{background-color:transparent;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .label text,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f span{fill:#ccc;color:#ccc;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node rect,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node circle,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node ellipse,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node polygon,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .rough-node .label text,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node .label text,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .image-shape .label,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .icon-shape .label{text-anchor:middle;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .rough-node .label,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node .label,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .image-shape .label,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .icon-shape .label{text-align:center;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node.clickable{cursor:pointer;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .arrowheadPath{fill:lightgrey;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .flowchart-link{stroke:lightgrey;fill:none;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster text{fill:#F9FFFE;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .cluster span{color:#F9FFFE;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f rect.text{fill:none;stroke-width:0;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .icon-shape,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .icon-shape p,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .icon-shape .label rect,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f .node .neo-node{stroke:#ccc;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node rect,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].cluster rect,#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node polygon{stroke:url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node path{stroke:url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient);stroke-width:1px;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node circle{stroke:url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"><path d=\"M206.078,59L210.245,59C214.411,59,222.745,59,230.411,59C238.078,59,245.078,59,248.578,59L252.078,59\" id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-L_A_B_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_A_B_0\" data-points=\"W3sieCI6MjA2LjA3ODEyNSwieSI6NTl9LHsieCI6MjMxLjA3ODEyNSwieSI6NTl9LHsieCI6MjU2LjA3ODEyNSwieSI6NTl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointEnd)\"></path><path d=\"M486.078,59L490.245,59C494.411,59,502.745,59,510.411,59C518.078,59,525.078,59,528.578,59L532.078,59\" id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-L_B_C_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_B_C_0\" data-points=\"W3sieCI6NDg2LjA3ODEyNSwieSI6NTl9LHsieCI6NTExLjA3ODEyNSwieSI6NTl9LHsieCI6NTM2LjA3ODEyNSwieSI6NTl9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g><g class=\"edgeLabel\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(0, 0)\"><foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-flowchart-A-0\" data-look=\"classic\" transform=\"translate(107.0390625, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-99.0390625\" y=\"-27\" width=\"198.078125\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-84.0390625, -12)\"><rect></rect><foreignObject width=\"168.078125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>User selects an amount</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-flowchart-B-1\" data-look=\"classic\" transform=\"translate(371.078125, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-115\" y=\"-39\" width=\"230\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -24)\"><rect></rect><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Website JavaScript receives the selection</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-flowchart-C-3\" data-look=\"classic\" transform=\"translate(651.078125, 59)\"><rect class=\"basic label-container\" style=\"\" rx=\"5\" ry=\"5\" x=\"-115\" y=\"-51\" width=\"230\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>JavaScript updates amount on the Lightning Out component</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><defs><filter id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><linearGradient id=\"diagram-9103c96f3809ae292b2fbab2198dc983adcb26e06441bc9ef53ffe5a276c219f-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#cccccc\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(180, 0%, 18.3529411765%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["flowchart LR;\n  A(User selects an amount) --> B(Website JavaScript receives the selection)\n  B(Website JavaScript receives the selection) --> C(JavaScript updates amount on the Lightning Out component)\n"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Salesforce also supports programmatically generating the Lightning Out markup using DOM methods. This way you can avoid declaring the entire component in static HTML."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"set-values-in-lightning-out-20-app-manager","__idx":4},"children":["Set values in Lightning Out 2.0 App Manager"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Values can be configured directly when setting up the Lightning Out 2.0 app in Salesforce."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Lightning Out 2.0 App Manager"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Find the relevant Lightning Out app and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit App"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["App Components"]}," tab."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Find the component."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Custom Properties"]}," field for that component."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the property values in JSON format."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Save the app."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"payment-method\": \"card\",\n    \"amount\": \"50\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These values become property overrides for that component when it is used through the Lightning Out app. Salesforce specifically documents Custom Properties in App Manager as one of the supported ways to set component properties."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This option is useful when a value is a static part of the Lightning Out app configuration and doesn't need to be calculated by the external website. For example, if the same wrapper should normally launch in a particular configuration, App Manager can provide that configuration without requiring the external page to pass it every time."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"handle-parameters-in-the-lwc","__idx":5},"children":["Handle parameters in the LWC"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once a parameter is passed to the LWC, it is available inside the component through its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]}," property."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"export default class FlowContainer extends LightningElement {\n\t\t@api firstName;\n\t\t@api normalizedFrequency;\n\t\t@api campaignId;\n}\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The values received from the external website can be used anywhere in the LWC where these properties are referenced."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The LWC can use these values in its own logic and content, or pass them to other components embedded in the LWC, including FinDock components."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"set-default-values","__idx":6},"children":["Set default values"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]}," property can also have a default value. The default value is used when no value is provided for that property. When the external website does provide a value, that value overrides the default. You specify the default value in the JavaScript:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"@api firstName = 'Supporter';\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This can be useful for creating a better fallback experience while still allowing the external website to customize it. For example, an LWC could display:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<p>Welcome, {firstName}!</p>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With the default value above, a visitor would see:"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Welcome, Supporter!"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the external website knows the visitor's name, it can provide it:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<c-flow-container first-name=\"John\"></c-flow-container>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The same LWC would then display:"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Welcome, John!"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Defaults can be used in the same way for other parameters whenever the component should have a predefined value that can optionally be overridden by the external website."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"pass-values-to-embedded-components","__idx":7},"children":["Pass values to embedded components"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Parameters received through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]}," can also be passed to components used inside the LWC."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, if the wrapper contains another FinDock component, a received property can be supplied to that component:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<cpm-payment-method-selector\n        frequency={normalizedFrequency}>\n</cpm-payment-method-selector>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The same principle applies when the LWC contains a Screen Flow. However, Flow requires its input variables to be provided in a specific format. This is covered in the next step."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"pass-parameters-to-a-screen-flow","__idx":8},"children":["Pass parameters to a Screen Flow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Receiving a parameter in the LWC does ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["not"]}," automatically make it available to the Flow. The Flow running inside the component won't know about the property until you explicitly pass the value to the Flow."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you want to use Salesforce data based on the passed parameters, make sure the corresponding Guest User has access to all the objects and records. For example, to pull the contact info, you need to provide the object access and set up the sharing model."]}]},{"$$mdtype":"Tag","name":"Procedure","attributes":{},"children":[{"$$mdtype":"Tag","name":"ProcedureStep","attributes":{"title":"Create an input variable in the Flow."},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["First, create a variable in Flow Builder. For example:"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Name"]},": contactId",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Type"]},": Text",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Available for input"]},": True"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Available for input"]}," must be enabled. This tells Flow that the variable can receive its initial value from something outside the Flow. The Flow can then use this variable in decisions, screens, record queries, assignments, or other Flow elements."]}]},{"$$mdtype":"Tag","name":"ProcedureStep","attributes":{"title":"Prepare the Flow variables in the LWC."},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lightning-flow"]}," component accepts input through its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["flow-input-variables"]}," property."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The wrapper therefore needs to convert its public properties into the format expected by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lightning-flow"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"import { LightningElement, api } from 'lwc';\n\nexport default class FlowContainer extends LightningElement {\n    @api contactId;\n    @api amount;\n\n    get flowInputVariables() {\n        return [\n            {\n                name: 'contactId',\n                type: 'String',\n                value: this.contactId\n            },\n            {\n                name: 'amount',\n                type: 'Number',\n                value: Number(this.amount)\n            }\n        ];\n    }\n}\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each Flow input contains three pieces of information:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," identifies the variable in the Flow. It must correspond to the variable's API name."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," tells ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lightning-flow"]}," what type of Flow value is being supplied."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["value"]}," contains the actual value that should be passed. In this case, it comes from the public LWC property."]}]}]},{"$$mdtype":"Tag","name":"ProcedureStep","attributes":{"title":"Provide the variables to `lightning-flow`."},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The component template connects the prepared variables to the Flow:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<template>\n    <lightning-flow\n        flow-api-name=\"Donation_Flow\"\n        flow-input-variables={flowInputVariables}>\n    </lightning-flow>\n</template>\n","lang":"html"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Always keep in mind that ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["parameter values are only passed when the Flow starts"]},". The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["flow-input-variables"]}," element provides the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["initial values"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Changing a public property after the Flow has already started should not be treated as a way to update the corresponding Flow variable. If parameters need to determine Flow behavior, they should normally be available before the Flow is started."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"complete-screen-flow-example","__idx":9},"children":["Complete Screen Flow example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Using the procedure we laid out above, let's look at an end-to-end example."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The external website provides:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<c-flow-container\n    contact-id=\"003XXXXXXXXXXXX\"\n    amount=\"50\">\n</c-flow-container>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The LWC JavaScript contains:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"jsx","header":{"controls":{"copy":{}}},"source":"import { LightningElement, api } from 'lwc';\n\nexport default class FlowContainer extends LightningElement {\n    @api contactId;\n    @api amount;\n\n    get flowInputVariables() {\n        return [\n            {\n                name: 'contactId',\n                type: 'String',\n                value: this.contactId\n            },\n            {\n                name: 'amount',\n                type: 'Number',\n                value: Number(this.amount)\n            }\n        ];\n    }\n}\n","lang":"jsx"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The LWC template contains:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<template>\n    <lightning-flow\n        flow-api-name=\"Donation_Flow\"\n        flow-input-variables={flowInputVariables}>\n    </lightning-flow>\n</template>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Finally, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Donation_Flow"]}," contains two variables: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contactId"]},"(Next) and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]},"(Number)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The external website can now determine the values that the Screen Flow receives when it starts."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"standard-html-and-aria-attributes","__idx":10},"children":["Standard HTML and ARIA attributes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lightning Out 2.0 supports a specific subset of standard HTML and ARIA attributes. Support for an attribute means that Lightning Out allows the attribute on the component proxy. It doesn't necessarily mean that the attribute is propagated to or changes the behavior of controls rendered inside an embedded Screen Flow."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Supported standard HTML attributes are not handled as custom Salesforce parameters, so they do not need to be declared using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@api"]},". They provide standard browser information or behavior for the Lightning Out component."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTML Attribute"},"children":["HTML Attribute"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lang"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defines the language of the component's content, for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lang=\"en\""]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lang=\"nl\""]},". It can be used by browsers and assistive technologies (like screen reader) to correctly interpret the content."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dir"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Defines text direction. Typical values are ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ltr"]}," for languages such as English and Dutch and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rtl"]}," for right-to-left languages such as Arabic."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["title"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Provides additional descriptive information about the element. Browsers may display it as a tooltip, but it shouldn't be used as the primary accessibility label."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["spellcheck"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Indicates whether the browser should perform spelling and grammar checking for editable text. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["spellcheck=\"false\""]}," can be useful around inputs containing identifiers or references rather than normal text."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autocapitalize"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Provides a hint to mobile browsers about automatic capitalization during text entry. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autocapitalize=\"words\""]}," can be useful for names."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autocorrect"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Controls automatic text correction on browsers and devices that support it. Setting ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autocorrect=\"off\""]}," can help prevent correction of identifiers, references, and similar values."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["inputmode"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Suggests which virtual keyboard a mobile device should display. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["numeric"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["decimal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tel"]}," can provide keyboards better suited to the expected input."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["enterkeyhint"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Suggests how the Enter key should be presented on a virtual keyboard. Values such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["next"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["done"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["send"]}," help communicate the expected action."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["translate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Indicates whether browser translation tools should translate the element's content. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["translate=\"no\""]}," can be useful for product names, identifiers, and other text that should remain unchanged."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lightning Out 2.0 also supports a subset of standard ARIA attributes. ARIA attributes provide accessibility information to assistive technologies such as screen readers."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ARIA Attribute"},"children":["ARIA Attribute"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-label"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Provides an accessible name for the component when an appropriate visible label isn't available. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-label=\"Donation payment form\""]}," can help a screen reader identify the purpose of the component."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-hidden"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Indicates that the component should be ignored by assistive technologies when set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},". It doesn't visually hide the component."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-disabled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Communicates to assistive technologies that the component is currently disabled or unavailable. It doesn't disable the component or prevent user interaction by itself."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-live"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Controls whether assistive technologies should announce changes to dynamically updated content. Values such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["polite"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assertive"]}," determine how urgently updates should be announced."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-modal"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Indicates that the component represents a modal interface. This only communicates the modal state to assistive technologies; it doesn't implement modal behavior."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-pressed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Special-purpose attribute for toggle controls."]}," Communicates whether a toggle-style button or control is currently pressed (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},") or not pressed (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]},"). It isn't intended for normal buttons or general component state."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-valuemin"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-valuemax"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aria-valuenow"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Special-purpose attributes for range-based controls"]},", such as custom sliders, progress indicators, or spin buttons. They describe the minimum, maximum, and current numeric value to assistive technologies. They don't define, restrict, or validate the actual value and aren't intended for normal text or number inputs."]}]}]}]}]}]},"headings":[{"value":"Lightning Out 2.0 dynamic content","id":"lightning-out-20-dynamic-content","depth":1},{"value":"Expose parameters for dynamic content","id":"expose-parameters-for-dynamic-content","depth":2},{"value":"Set values directly in the host page markup","id":"set-values-directly-in-the-host-page-markup","depth":3},{"value":"Set values programmatically","id":"set-values-programmatically","depth":3},{"value":"Set values in Lightning Out 2.0 App Manager","id":"set-values-in-lightning-out-20-app-manager","depth":3},{"value":"Handle parameters in the LWC","id":"handle-parameters-in-the-lwc","depth":2},{"value":"Set default values","id":"set-default-values","depth":3},{"value":"Pass values to embedded components","id":"pass-values-to-embedded-components","depth":3},{"value":"Pass parameters to a Screen Flow","id":"pass-parameters-to-a-screen-flow","depth":2},{"value":"Complete Screen Flow example","id":"complete-screen-flow-example","depth":3},{"value":"Standard HTML and ARIA attributes","id":"standard-html-and-aria-attributes","depth":2}],"frontmatter":{"seo":{"title":"Lightning Out 2.0 dynamic content","description":"Lightning Out 2.0 supports dynamic content, allowing you to pass parameters from your external website back to Salesforce to control how a component behaves based on the provided data.","keywords":"payment experiences, lightning out, dynamic content, parameters"}},"lastModified":"2026-11-23T05:36:00.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/payments/lightning-out-2-0-dynamic-content","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}