Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: buckworks
however, i'm not sure how to do it, exactly! I have a paypal account, and i understand how to actually use it and everything, but what i'm unsure of is: when someone visits my site and signs up to a subscription, how will their payment be automatically matched with their database entry in My website? and how am i going to keep track of when who's subscriptions expire so their database entry can be altered so that their accounts can be reverted to non-premium... i would like everything to be automated...
I hope someone can train me on all this :) thankyou
But I didn't try very hard, either, and this was over 6 months ago so maybe things have changed.
1)Setup a script to handle Insant Payment Notification (IPN)
// There are many free scripts available on internet for same purpose.
2)Enable IPN for your account and set your IPN URL to point to your script location.
3) Just check for the variable: "txn_type". If it's "subscr_signup" then it means a new subscription has been activated. If it's "subscr_eot", it means a subscription has just expired (end of term). Please note that eot is separate from subscription cancellation. For more details, please check IPN manual available on PayPal.
4) To make sure that integration with database is seamless, please use optional fields also while passing variables to PayPal.
Above method may seem complicated at first sight but once you are done with it, you will surely find it worth all your efforts.
Alternative to aforementioned process can be "completition URL" (as described above) but it's not very accurate and won't be able to predict end of terms automatically.