johnwayne77 Posted September 13, 2008 Share Posted September 13, 2008 hey! i am developing an oscommerce for a digital goods store which sells prepaid telephony codes. I have an option in oscommerce to enable downloads for products and to add an url for each product. This is all i have from oscommerce so i need to get it working just with that. I was thinking of a system that does the following: merchant approves payment -> merchant notify oscommerce that order is ok and proceed with download -> oscommerce runs the script to deliver the key codes in customer email: script: system runs into a list of codes (either located in a .txt, either in the same php), extracts it (cuts it) from the list, put it in a variable, then mail it to the customer. what do you think? any ideas? and advices for these methods? also, if you are into oscommerce maybe u can help me figure out this: let's say i set the download url for product X 'scriptX.php' as i will have different script for each product. when merchant validates the order and sends back the payment notification, what can i do to run the script first and then mail the customer instead of mailing the script to the customer(which is not safe as he could run it a dozen times). Thanks, help is much appreciated as security measures i was thinking of allowing only my host ip to access the script. Link to comment https://forums.phpfreaks.com/topic/124047-deliver-key-codes-digital-goods-shop/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.