Redirect back to main site after payment

Instead of going to the admin dashboard, i want to redirect my user to the sign up page or a thank you page with further instructions. how do i do this ?