fixing up purchase and getting it to redirect