hugoac7
Member
Posted 7 months ago #
Hello everyone,
Im trying to set up a music website where the users can purchase a song and download the song as soon as they pay for it. I know there are some great e-commerce plugins and themes but I cant figure out how i would go about letting the users download a song after they pay for it.
Does anyone have a good idea of what I could do? Maybe there is a plugin that I havent seen that can do this for me? I would appreciate any help.
Thanks.
Navaratnam
Member
Posted 7 months ago #
How are they going to pay? If you are planing to use PayPal then implement the API from then.
There you could set the return url. Make sure you verify the information before let them download.
hugoac7
Member
Posted 7 months ago #
Thanks for the quick reply and yes they will be paying with PayPal.
Can you explain to me a little more what it is you mean exactly please?
Navaratnam
Member
Posted 7 months ago #
hugoac7
Member
Posted 7 months ago #
so after i implement the api i should set up a private page where they can gain access to download the files? Would that work?
Navaratnam
Member
Posted 7 months ago #
I would say after the successful payment the API will post the details to the link you point. Direct the other page from there and make sure to verify the referrer from PHP. so that any one trying to access it directly will not gain access.
hugoac7
Member
Posted 7 months ago #
ok. i think i understand what you're saying so I will give it a shot.
thanks for your help!