sling-web-business-payment-chart

Payment Chart business component

Usage no npm install needed!

<script type="module">
  import slingWebBusinessPaymentChart from 'https://cdn.skypack.dev/sling-web-business-payment-chart';
</script>

README

Sling Payment Chart Business Component.

This component is a chart with payments info.

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-payment-chart
      affiliationcodes=""
      startdate=""
      finaldate=""
      crossbalance=""
      aspectratio=""
      charttype="">
    </sling-payment-chart>
  • The stonecode, startdate, finaldate and crossbalance atributes are mandatory for the component to make the correct request to the integrated api and populate it with data.
  • aspectratio must be a number representing the chart's width/height ratio. Defaults to 2.
  • The charttype atribute is not mandatory. Default option is line. Depending on the chosen type, there are colors configurations set by default.

Project Wiki:

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