You can collect coupon codes on the checkout page by enabling Discount Code option under Settings >> Checkout & Self-Serve Portal (under Customer-facing essentials) >> Field Configurations >> Discount.
Once you check this option, the Discount Code field will show up on the checkout pages.