Afterpay.js Glossary
Constants
<CONSTANT_NAME> | Values |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using Afterpay Constants
Constants are exposed to the window via the Afterpay object Afterpay.<constant_name>.
See some examples below
console.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
Name | Description |
---|---|
| Adds one or more placements to the page using the |
| Dynamically open the Clearpay Modal |
Name | Description |
---|---|
| Custom Window Event dispatched when |
| Custom Window Event dispatched when the |
Updated over 1 year ago