How would i go about Paypal IPN

So i want to make a automatic donation system for a garrysmod gamemode (perp) but im not sure how i would use the paypal ipn with the gameserver and mysql…

Can anyone help me out?