Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PayPal Buy Now

PayPal Buy Now

PayPal Buy Now

Hi there,

I am trying to create a simple paypal buy now button to renew memberships on our website. The user has to be logged in and the system auto generates a random string for the session which I then want to pass to paypal via their buy now buttons and then have paypal give it back so I can authenticate and finalize the renewal. You'd think this would be an easy thing to do but I can't figure it out. Every article I seem to find on google is either outdated or vague. The most common re-occurring thing I find is that pass through variables are allowed and to do code like so in the paypal button


<input type="hidden" name="custom" value="' . $_SESSION["random"] . '"> 

That's easy enough but on the paypal site on Step 3 for adding advanced variables there doesn't seem to be a way to reference this variable I sent in the first place. First off their own site has a broken link and secondly when I do any variable and enter the success page no variables seem to be passed.

I was hoping it could add this variable back to the success URL which I would in turn use $_GET or $_POST to read it and go from there but nothing seems to work.

I know this question isn't strictly PHP related nor strictly HTML related but has anyone done this recently with any success??? There are way too many articles that reference this is somehow possible but no examples how to specifically do it. Thanks.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close