You get an email when a new purchase is made right? You could pipe that email into your server, parse it for the buyers email, and then send the Discord link. Discord has a solid API so it should be pretty straightforward to set that up.
Oh, this also sounds like a nice way to set it up! I'll look into this as well! Hmm, not entirely sure how to pipe an email from Gmail to my server though.