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 6914555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:21:45+00:00 2026-05-27T09:21:45+00:00

I have a number of sites that are using this script for handling paypal

  • 0

I have a number of sites that are using this script for handling paypal purchases:

header("location: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=".urlencode($strMail)."&item_name=".urlencode($strName)."&item_number=".urlencode($strCode)."&amount=".urlencode($strCost)."&no_shipping=0&return=".urlencode($strDomain.$strFolder."Thanks.php")."&cancel_return=".urlencode($strDomain.$strFolder."Cancel.php")."&notify_url=http%3a%2f%2fwww%2eincansoft%2ecom%2fipn%2ephp&no_note=1&currency_code=USD&lc=GR&bn=PP%2dBuyNowBF&charset=UTF%2d8");

The problem here is that when it redirects to the page “Thanks.php”, I want it to update something in my database (change the availability of the item). I’ve read up on Payment Data Transfer and Auto Return, but turning on Auto Return requires me to have to input a constant return page and then edit ALL the sites I have to have individual Thank You pages.

My question is:
Is there any other way to redirect and retrieve transaction data without setting 1 constant return page for ALL my products?

Edit: I guess it is possible, since, for example, Nanacast can do it. You just configure your email and the return URL, and then it returns even the transaction data. The question is: HOW?

  • 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-27T09:21:46+00:00Added an answer on May 27, 2026 at 9:21 am

    Have a look at PayPal Instant Payment Notification (IPN) – https://www.paypal.com/ipn/
    This will force a POST of transactional data to be sent to you whenever a transaction has been initiated. The buyer doesn’t even have to return to your ‘Thanks’ page in order for this to work; it’s always sent as long as the buyer completes the payment on the PayPal website.

    If you currently use Website Payments Standard (HTML based buttons), you can simply add

    <input type="hidden" name="notify_url" value="http://full-URL-to-the-script-you-set-up-for-IPN">
    

    Or in your case, append &notify_url=http://…… to your URL’s.
    Alternatively, you can also set up an IPN URL within your PayPal Profile which will apply to all incoming payments (unless overriden with the ‘notify_url’ HTML parameter).
    You can set this up in Profile > My selling tools > Instant Payment Notification > Update.

    You’ll need to take all POST data you received from PayPal, append cmd=_notify-validate and send it back to https://www.paypal.com/cgi-bin/webscr (or https://www.sandbox.paypal.com/cgi-bin/webscr for Sandbox) in order to validate the IPN message.

    Depending on this result, you’ll get back an INVALID or VERIFIED responsein the body of the page.
    INVALID may mean the IPN POST didn’t originate from PayPal, whereas VERIFIED means the IPN POST was verified as indeed coming from PayPal.

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

Sidebar

Related Questions

I have a script that I have been using on a number of different
I have a number of sites that are completely hosted on Amazon S3 but
i have many urls(string): $one = 'http://www.site.com/first/1/two/2/three/3/number/342'; $two = '/first/1/two/2/number/32'; $three = 'site.com/first/1/three/3/number/7'; $four
I have a number of shell scripts that all look like this: #!/bin/bash cd
I have a simple image upload script that uses SimpleImage.php (http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/) to resize and
I'm going to have a single site that needs to be themed a number
I have inherited a web site project that makes use of a number of
I have a legacy website creation script written in VBScript which configures a number
I have a script in Filemaker that calls a Brian Dunning hosted custom function
Ok, I'm using Razor and jquery 1.5.1 if that affects the answer. I have

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.