Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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/
    Last edited by zoobie; 01-31-2004 at 08:23 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •