This topic is locked

Paypal in ASPrunner 5.1

9/25/2008 6:32:31 AM
ASPRunnerPro General questions
Z
zion4ever author

Hello,
I have created a test site with asprunner 5.1. I want to setup a store where people can buy items. Now I wonder how I can setup IPN with the ordered item as a querystring. The idea is that if someone orders a product, after paying with paypal he will be redirected to http://www.mysite.com/paymentsucces?itemID=5
This way I can have the asp page write to a mysql table that holds statistics on downloaded items. As far as i have seen you can only give one IPN as a general setting and not for every single item. Is this correct?
Second, one quick question:

How would I set it up so that this same asp page can hold statistics per user, let's say write a record that the item is already downloaded, so the user may not download it again (prevent people from spreading my download link so other people start downloading directly). I know this can be done when i let users login and then order. This way i will have their username to put in the querystring, but if i want an open store that everyone can visit, how would i track an unique user (request.servervariables("Logon_user") may not be an option since it varies if a user buys at work, but uses it at home)
Any tips would be greatly appreciated!
Hans

Z
zion4ever author 9/25/2008

No one? Not even a small tip? Plz guys...

Sergey Kornilov admin 9/25/2008

If you need URGENT answers you MUST contact support directly.
Members and Shopping Cart templates provide IPN support. Paypal sends back to IPN page transaction info which you can use to update your database accordingly.
Handling download statistics requires some additional coding. You might need to build a custom download script (or modify existing one) to increase downloads count for this user. You also might need an additional table to store download stats for all users.