CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 I appreciate a lot your help with this question, thanks.

Print topic Send  topic

Author Message
joejac

Posts: 242
Posted: 04/13/2009, 10:34 AM

Hello, and sorry to post this here because it is not a CCS question, but I did not have an answer in PayPal forums in days of posting. This questions is for those that uses Paypal, I appreciate a lot your kind help.

I did a couple of Paypal test buttons with a return URL like this:

http://www.mywebsite.com/downloads/downloads.php?id=1 (or 2)

where the id is the product number, I make the test payment, I got automatically redirected to the download page and I got the file download, this works very good.

But now I need to allow only downloads requests from sandbox.paypal.com only, I tried using $_SERVER['HTTP_REFERER'] but I did and echo and it is empty.

How can I download only when a request comes from the sandbox.paypal.com web site? I use PHP5. The solution has to work also when going with the true Paypal payment system.

Thanks a lot.
Best regards
joejac
View profile  Send private message
ckroon

Posts: 869
Posted: 04/13/2009, 2:19 PM

Hi.
Codechargetools.com has a great PayPal store builder that you can use.. or... see how they handle it.

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
damian

Posts: 838
Posted: 04/13/2009, 3:31 PM

this is not a direct answer to your question but it may help solve your problem...
i think you are wanting to ensure that someone who buys your product doesnt share the download link or in case someone stumbles upon it accidentally.

you could modify this registration example:
http://forums.codecharge.com/posts.php?post_id=62423
in a number of ways. you could make each link require a timestamp, you could make each link work only once by adding another hidden field that is submitted to db on before show or on click on a page element etc

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.