On this pageConstantsFunctionsClearpay Messagingjavascript-libraryAfterpay.js GlossaryCopy pageConstants <CONSTANT_NAME>ValuescurrencyAUD, CAD ,GBP, NZD, USDlocaleEN_AU, EN_CA, EN_GB, EN_NZ, EN_USlogoTypeBADGE, LOCKUPmodalLinkStyleCIRCLED_INFO_ICON, LEARN_MORE_TEXT, MORE_INFO_TEXT, CIRCLED_QUESTION_ICON, NONEplacementTypesPRICE_TABLEsizeXS, SM, MD, LGmobileViewLayoutFOUR_BY_ONE, TWO_BY_TWOtheme.badgeBLACK_ON_MINT, BLACK_ON_WHITE, MINT_ON_BLACK, WHITE_ON_BLACKtheme.lockupBLACK, WHITE, MINTtheme.modalWHITEtheme.priceTableBLACK, WHITE Using Afterpay ConstantsConstants are exposed to the window via the Afterpay object Afterpay.<constant_name>.See some examples belowconsole.log(Afterpay.locale.EN_US) // "en_US" console.log(Afterpay.theme.lockup) // "{"BLACK":"black","WHITE":"white","MINT":"mint"}"console.log(Afterpay.theme.lockup.BLACK) // "black" Functions NameDescriptioncreatePlacementsAdds one or more placements to the page using the targetSelector attribute.launchModalDynamically open the Clearpay Modal. NameDescriptionreadyCustom Window Event dispatched when Afterpay.js is successfully initialized.modalRenderCompleteCustom Window Event dispatched when the <afterpay-modal> finishes rendering.