Compliance component

Learn how to remain compliant in a components checkout

The compliance component displays localized hypertext that links customers to the terms and disclosures of the designated selling entity.

To access Digital River's merchant of record model, you'll need to design your experience so that this component is visible (mostly likely in the footer of the page) throughout every stage of the checkout process.

Creating the compliance component

To create an instance of the compliance component, pass 'compliance' to createComponent().

let complianceComponent;
...
complianceComponent = components.createComponent('compliance');
...

Mounting the compliance component

To attach the compliance component to your DOM, pass the id of its container to mount().

<div id="compliance-container" style="display: block">
...
complianceComponent.mount('compliance-container');
...

Last updated