Advanced Usage
Dynamically Create Placements
The createPlacements function binds to the Afterpay
window object, exposing new functionality to dynamically create Afterpay Placements.
This method injects <afterpay-placement> onto the page taking into consideration all the configuration values provided as an object.
Accepted keys on the attributes object
The keys specified on the attributes
object are the camel-cased version of the hyphenated data attributes passed to the <afterpay-placement>
element.
NOTE: Default values in bold