Duplicate code removed, buy confirmation included

N.B. There was no specification on how the confirmation should look, so
I created a Toast.