Let your customers know you accept payments with Afterpay by including the Afterpay messaging Element on your site. We suggest adding the messaging Element to your product, cart, and payment pages. The afterpayClearpayMessage Element takes care of:
- Calculating and displaying the installments amount
- Displaying the Afterpay information modal
- Localizing text and currencies
Include the Element
Customize the message
There are many options available to customize the appearance and contents of the messaging Element. See the API reference for the full list of options.
'badge' and use the
badgeTheme option to choose between the following styles:
'lockup' and use the
lockupTheme option to choose between the following styles:
Style with CSS
In addition to the configuration options, use CSS to style the messaging to better fit the look and feel of your site. You can customize the
color of the messaging:
You can also control the size of the logo by setting its
Handle ineligible items
You can’t use Afterpay for certain prohibited business categories. If you sell items in these categories, you can still display the messaging Element to clearly indicate Afterpay isn’t available.
isCartEligible options to indicate that the current product or cart isn’t eligible:
Afterpay also has default transactions limits for each country. When the provided
amount exceeds these limits, the Element automatically displays ineligible price range messaging. You can customize this message by hiding the lower or upper limit with
Locale and currency
Afterpay and clearpay support the following locales and currencies:
Afterpay’s messaging always the appropriate number of installments a user can pay based on their locale and country. For more information, see payment collection.