sling-web-business-sales-simulator

Sales Simulator business component

Usage no npm install needed!

<script type="module">
  import slingWebBusinessSalesSimulator from 'https://cdn.skypack.dev/sling-web-business-sales-simulator';
</script>

README

Sling Sales Simulator Business Component.

This component simulates a sale so the merchant know beforehand how much he would receive.

Usage

This is how you set the component into the project html structure

    <!--root project index file -->
    <sling-sdk-connect></sling-sdk-connect>

    <!-- component wrapper page location -->
    <sling-sales-simulator
        affiliationcode=""
        uselandscapeview>
    </sling-sales-simulator>

The affiliationcode atribute is mandatory for the component to make the correct request to the integrated api and populate it with data. The uselandscapeview atribute show only be passed when the width of the device is big enough for its whole visualization. The sibling component sling-sdk-connect must be passed in the project root index html file for data management purposes. If the project has multiple business components this must be passed ONLY ONCE.

Project Wiki:

https://stonepayments.atlassian.net/wiki/spaces/APICLIENTE