This library provides a web-component to show disclosures for Citi Pay/Upgrade Indirect based on the order total. This can be integrated along with the Acorn Smart Widget, which has the functionality to control the disclosures web-component.
The disclosure web-component is in sync with the Acorn Smart Widget and gets hidden/shown based on different criteria. It also will have the same order total as the Acorn Smart Widget at any given time.
| Parameter | Description | Value |
|---|---|---|
| loanAmount | Order total | Required. Value ranges from $1,000-$100,000 |
| hideDisclosures | Used by Acorn Smart Widget to hide or show the disclosure. If passed on the web-component will override the Acorn Smart Widget control. | Optional. Default false. Set it to true to hide disclosure. |
To integrate the lender disclosure web-component, follow the steps below:
Note: Ensure you have the correct version of the script in your code for the different PODS Environments:
https://widgets-cdn.acornfinance.com/paw/v5/dist/af-pods-lender-disclosures.min.js
https://uat.widgets-cdn.acornfinance.com/paw/v5/dist/af-pods-lender-disclosures.min.js
https://qa.widgets-cdn.acornfinance.com/paw/v5/dist/af-pods-lender-disclosures.min.js
<script async type="module" src="https://uat.widgets-cdn.acornfinance.com/paw/v5/dist/af-pods-lender-disclosures.min.js" onload="loadDisclosures()"></script>
function loadDisclosures() {
acornDisclosureParameters.loanAmount = 2900; // Order Total
setAcornDisclosureWidget('acorn-pods-disclosure');
}
<acorn-pods-lender-disclosures id="acorn-pods-disclosure"></acorn-pods-lender-disclosures>