Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:05:09+00:00 2026-06-12T05:05:09+00:00

I have a simple PayPal buy button on my site. The user goes to

  • 0

I have a simple PayPal buy button on my site. The user goes to paypal, and when he is finished buying, he automatically redirects to my site (currently on the sandbox there is a screen before the redirect, saying “if with 10 seconds you are not redirected…”). Also, I’ve set up the notify_url with a url on my server to process the successfull payment.

I have 2 questions:

  1. my site uses user login. so someone who clicked the buy button is an already logged in user. My question is what is the best way to figure out which user did the purchase when I’m processing the paypal IPN on the notify_url? I thought about setting a unique identifier based on the user id on the button form, but I just couldn’t find documentation how to do it.

  2. when the user finishes the purchase he should be able to have access to certain content. So say the user lands in http://www.example.com/account after the purchase, I would like to check the database to see whether he really did successfully finished a purchase. So my question is, can I be certain that the notify_url callback will be executed before the user lands on /account?

I really don’t want to have angry customers who successfully purchased but still didn’t get access. What is the best way to ensure this situation will never happen?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:05:10+00:00Added an answer on June 12, 2026 at 5:05 am

    If you look at the IPN and PDT variables page for Paypal, you’ll see that a field called “custom” can be used. Its description:

    custom: Custom value as passed by you, the merchant. These are
    pass-through variables that are never presented to your customer.
    Length: 255 characters

    Form example:

    <input type="hidden" name="custom" value="<?php echo $user_id; ?>"/>
    

    And in your IPN response script:

    $user_id = $_POST['custom'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a simple Paypal button on my website where people enter some
I have a Google Checkout 'Buy Now' button on my site. It's very simple,
I am trying to implement a simple subscribe button using Paypal. I have used
I have created a rather simple photo gallery that I wish to apply PayPal
I have a website where people do simple cognitive psychology experiments. Currently, people volunteer.
I have created a simple button , on a click of it direct it
I am trying to add a simple PayPal button to a website. What I
I have a simple Pay Now button, the code created through the button maker,
I have created two test accounts(buyer and seller) in PayPal sandbox. And then trying
Is there some simple donation URL I'm missing from PayPal? When I generate my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.