HTTPSRedirect String Comparison does not match

I think it would behoove you to understand the difference between print() and println().

I think it would behoove you to understand that it is important, when you have changed your code, to post the revised code.

Error:Beer Purchase string is not a match

I'd much rather see

Error: [Beer Purchased] is not equal to [Beer Purchased].

Then, we KNOW that you have printed the correct thing at the correct time. If we see anything else on that line, or that data takes more than one line to display, a clue-by-four is coming, and we need to duck.