TBBucs
May 8th 2008, 8:41 pm
Here's the premise of my latest project. A client creates an account (that part is done), then clicks on the "Post a listing" link, where they are directed to a page with a form to fill out (that part is done).
Now for the part I don't know how to do:
The user clicks a button to buy a credit, which redirects them to a PayPal page where they complete the transaction. One purchase like this gives the user one credit (the number of credits they have would be stored in the database). They can use these credits to post listings on the site.
I know how to check for credits and either allow or deny them a listing, but I'm not sure how to go from the PayPal page to giving them a credit. Any ideas how I'd accomplish this?
Now for the part I don't know how to do:
The user clicks a button to buy a credit, which redirects them to a PayPal page where they complete the transaction. One purchase like this gives the user one credit (the number of credits they have would be stored in the database). They can use these credits to post listings on the site.
I know how to check for credits and either allow or deny them a listing, but I'm not sure how to go from the PayPal page to giving them a credit. Any ideas how I'd accomplish this?