Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-31-2004, 03:46 PM   PM User | #1
m7d7g7
New Coder

 
Join Date: Oct 2002
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
m7d7g7 is an unknown quantity at this point
Hiding PayPal Return Links?

Hi,
Is there any known way to encrypt a paypal page that has the return link on it? It's very easy on my page to view the source, find the return link and get the password to access the content area. I have seen some programs that do this but want your opinion.

Thanks,
Mike
m7d7g7 is offline   Reply With Quote
Old 01-31-2004, 03:51 PM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
There's no real way to do this, to make it secure you will need to use a serverside language, or htaccess.

A basic example would be to check to see if they've come from paypal and only then display the password, if they not come from paypal, send them back to your form
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 01-31-2004, 07:01 PM   PM User | #3
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
You can use a little serverside script as your return page to check for PP's posted payment details to it...If they're not there, you can deny access. PP's IPN really isn't needed unless you want to record data in your own db. This is php:

$payment_status = $_POST["payment_status"];
$mc_gross = $_POST["mc_gross"];
$receiver_email = $_POST["receiver_email"];

...are the 3 you should check for. Then you make a if/else statement. I've converted them back to regular vars here for easier coding. The PP dev site is worthless...They'll just wanna sell you scripts.

Here's what I used in my return page that PP automatically posts it's vars to:

if ($payment_status == 'Completed' && $receiver_email == 'zoobie@site.com' && $mc_gross=='5.99')
{ //go to d/l page or wherever}
else{ //get lost}

You can get a free host with php @ freewebspace.net/forums/
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">

Last edited by zoobie; 01-31-2004 at 07:23 PM..
zoobie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:40 AM.


Advertisement
Log in to turn off these ads.