Sample of paypal integration on web applications
More about application and integration on video. Pay for premium membership for 1, 3, 6 or 12 months via paypal.
https://www.youtube.com/watch?v=OpWyN7SV38Y
DEMO username: user / password: user. You can update this account on premium using your paypal sandbox account.