Hi,
I am looking for a system to sell single items at the touch of a button, but want to be able to offer discounts depending on what the user has bought before. I have had a look at paypal but cannot seem to get an answer from them on how I would be notified when someone has bought something and what that something is. Does anybody know how to achieve this with paypal or perhaps an alternative?
This is how I plan to implement:
1) Get a buy now button in html code for each course
2) Store the html for each course with each course's record in the database and display appropriate courses by querying the database. Easy enough
3) Courses that have a discount option will be treated as a new course as far as the database is concerned
4) When a user clicks on 'Buy now' it takes them through to pay pal who will handle the transaction (I assume they have the price already so all I will need to pass them is a course ID)
5) If the user goes through with the transaction they will be returned to my site.
6) Once back at the site I need to record whether they went through with the transaction or not.
Its step 6 that I can't work out how to do or even if its possible. I would have assumed that Paypal have thought about this before and have an xml messaging system or something
Any ideas?