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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:24:08+00:00 2026-06-04T02:24:08+00:00

I am currently testing an IPN script in PHP, using Paypal’s sandbox. It seems

  • 0

I am currently testing an IPN script in PHP, using Paypal’s sandbox.

It seems to work fine, except that it seems to get hit twice every time. I put in some code right at the top to just send me an email alert so I know the script has been executed. I get that alert twice with every transaction.

I can even comment out everything in my script except that line, and I still get it twice, so I think I can be reasonably certain the problem is not in my IPN script but something on the Paypal end.

I don’t know if this means I’ve got some setting in my account on Paypal wrong, or if there’s a normal part of Paypal workings that I’m not understanding or what’s going on. I’m pretty sure my IPN script shouldn’t be running twice for every transaction, though.

Is there a reason my IPN script would get hit twice? Is there something I can or should be doing about that?


Updates:

  1. I have confirmed that the double hit happens every single time.

  2. There actually is a difference in the two emails I get back. In one there is a payment_date variable, and in the second one there is a subscr_date variable. The subscr_date variable is set to a time just a few seconds after the payment_date.

While it would seem that all that is happening is that I am getting two notifications, one for the payment, and one for the subscription starting, this still strikes me as odd. My understanding of the IPN script is that its purpose is so that I can execute changes in my database (or whatever else) based on a successful payment. If they intend to hit me twice each time, then whatever changes I intend to execute will be done twice, which I think is clearly not the ideal approach.

Also, since what a customer is purchasing is a subscription, it seems they are giving me two notifications about the same thing with a different names each time. Also rather strange.

So I’m still wondering… is this normal, and what should I be doing to prevent my code from being executed twice?

  • 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-04T02:24:10+00:00Added an answer on June 4, 2026 at 2:24 am

    You are getting 2 different IPN events – 1 to confirm the payment and 1 to confirm the start of the subscription.

    See the IPN subscription events here http://www.paypalobjects.com/en_US/ebook/subscriptions/notifications.html#1032718 and the IPN subscription variables here http://www.paypalobjects.com/en_US/ebook/subscriptions/Appx-ipn_subscription_variables.html (scroll down to Table A.2) for what you can expect to see in each type.

    There are also IPN events, for example to mark the end of a subscription, which are not directly related to a payment.

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

Sidebar

Related Questions

I'm currently testing a script on my host. This script is to accept PayPal
I am currently testing this function in all browser using php. <style> #preview_desc{ text-wrap:
So i recently created PayPal IPN script, but while I was testing it with
I am currently testing this in Mozilla FireFox 3.0.5 using FireBug 1.3.0 with jQuery
I'm currently testing an OpenID implementation, and I'm noticing that Google sends a different
I've been trying to implement unit testing and currently have some code that does
I'm writing a small free tool. It's currently in Beta testing using .NET 3.5
Currently I am doing acceptance testing of my web applications using Cucumber and webrat.
I'm currently testing GAs new async code snippet using two different tracking codes on
I am currently testing out using OSGi. I am running this through Eclipse. I

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.