Written by Robin Cornett. Last updated on January 10, 2024. Fixed bug that prevented checkout under certain conditions