First, apply for an Afterpay merchant account. Once accepted, if your store lives on WooCommerce, Shopify, or any of these major eCommerce platforms, add Afterpay using a ready-made integration. If your store is not on a major eCommerce platform, or is highly customized, build a direct integration to Afterpay using their API.