Choose a headless commerce provider and follow their guidance for adding support to your site. If you don't know which provider you'd like to use, here's a list of solutions for decoupled sites.