Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.