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

  • Home
  • SEARCH
  • 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 815941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:45:28+00:00 2026-05-15T01:45:28+00:00

PayPal successfully returns me the return URL that I specify while creating "buy now"

  • 0

PayPal successfully returns me the return URL that I specify while creating "buy now" button. But now I am confused. How do I retrieve details about the transaction that took place on PayPal? I also want to set some database values on the return URL. But I am afraid if my user navigates to that URL without paying, he will become a premium member nonetheless. How do I avoid this?

  • 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-05-15T01:45:29+00:00Added an answer on May 15, 2026 at 1:45 am

    PayPal returns data back to your site via what they call IPN. Its really just a callback to a URL you specify.
    You can set this URL via the variable notify_url you can send to PayPal.

    Example:

    <input name="notify_url" value="http://yourdomain.com/notify_url.php" type="hidden">
    

    The notify_url.php in the example above receives some POST variables from PayPal when the payment is completed, even if the customer never returns to your website.

    Some of the important variables returned by PayPal is:

    • mc_gross
    • invoice
    • settle_amount
    • protection_eligibility
    • address_status
    • payer_id
    • tax
    • address_street
    • payment_date
    • payment_status
    • charset
    • address_zip
    • mc_shipping
    • mc_handling
    • first_name
    • mc_fee
    • address_country_code
    • exchange_rate
    • address_name
    • notify_version
    • settle_currency
    • custom
    • payer_status
    • business
    • address_country
    • address_city
    • verify_sign
    • payer_email
    • txn_id
    • payment_type

    invoice is returned if you set it. It can be used as your own order-id/transaction-id.

    txn_id is generated by PayPal and it is their own id for the transaction.

    If you add items yourself you will PayPal also returns num_cart_items, item_name1 (item_name2, item_name3), quantity1 (quantity2, quantity3) and such.

    More reading at https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

    Of course then you still have the problem to solve, how to check all this data and connect it to a customer in your own database, which you probably have.

    What I do is to save a temporary “order” before I send the customer to PayPal with a invoice id, same id i send to PayPal as invoice. This way my notify_url.php page can check my database for a invoice id and compare the order/payment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.