Adding checkout functionality