This is OpenSource scripts in php and LSL for helping to keep control of all sources of your Second Life transaction logs onto your own server (requires MySQL and PHP)
All of this was originally started by me studying PHP (i'm a noob) and studying the tutorial Sassy Romano put up on the Secondlife Forums
Sassy Romano's tutorial: http://community.secondlife.com/t5/Merchants/Setting-up-Marketplace-to-use-ANS-and-log-to-an-external/td-p/1107297
updated the info to SL wiki info :http://wiki.secondlife.com/wiki/Direct_Delivery_and_Automatic_Notification_System
this so far includes:
- the main ANS PHP script
- basic in-world vendor script
- SQL file for database
If you don't have a web server, and want one, there is free hosting at http://x10hosting.com/ This is the host I use. If you use this host, the MySQL host for the php scripts will be localhost.
- import the sql table
- open ans.php and translog.php in you favorite test editing app, then enter your server info, replacing "Username", "Password",and "Database" with your database info.
- upload ans.php and translog.php to your server, anywhere you like.
- copy-paste ANSVendor.lsl into a script in SL and save it, setting the object description for price, and placing an object alongside the new script.
- change ANS info on marketplace to URL of where your ans.php is located
- test a sale in-world and on marketplace, if all goes well, you are done.
translog.php is a simple and optional viewer for your transaction logs, it will show an avatar image of buyer, tell you calculated profit (taking care of marketplace fees), tell you if purchase was gift or not, and also tell you where sale took place.