added the click to checkout function again but this time with the missing closing brackets