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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:25:13+00:00 2026-06-10T14:25:13+00:00

I have a PayPal listener that gets an HTTP POST request from PayPal (or

  • 0

I have a PayPal listener that gets an HTTP POST request from PayPal (or the PayPal documentation seems to indicate that’s what they send), the listener sends back the information for verification by PayPal, and then if the information is verified, it does database transactions. This is the normal PayPal IPN process and the verification part works fine.

One of the values in the POST array that I get from PayPal is something that I am passing through to keep track of the transaction number. So I make a call that looks like: (not actual code; I am fully aware of SQL injection)

UPDATE transactions SET status='paid' WHERE id=$_POST['invoice']

The problem: If I fake the input by pointing a form with some inputs to my listener everything works fine, but if I get a real POST array from PayPal the database doesn’t run. I know the $_POST['invoice'] variable is set when I get the real PayPal data, I’ve tested that, and it has a valid value, like 84, so I don’t know why my transaction doesn’t execute. The lines above and below the transaction both execute.

Maybe I’ll have to post my actual code, but is it possible that PHP could be configured in some way that it wouldn’t run transactions when it gets a request from PayPal? Like I said, I think PayPal is sending an HTTP POST request so it should be indistinguishable from my fake form, but something is wrong.

  • 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-10T14:25:15+00:00Added an answer on June 10, 2026 at 2:25 pm

    The notify URL was set to point at the listener in the development database. So I got the emails indicating that the POST[‘invoice’] variable was set, but all the transactions were run on the development database

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

Sidebar

Related Questions

I have the following post button that i use for paypal transactions: <form action=https://www.sandbox.paypal.com/cgi-bin/webscr
i have put that url http://pvpcoach.com/notification.php in Instant Payment Notification setting in my profile
I have paypal donate button and I wanna send hidden note with it. How
i have to choose between several payment gateways. I heard that PayPal is quite
I thought that I have a developer account at PayPal (still logging in successfully
I have a form that I want to ensure the paypal email address is
I have a paypal button on webpage that adds item to shopping basket. Can
I have a PayPal pay now button. If I click it - a POST
I have integrated paypal express-checkout in a website. All seems to work fine. When
My first question on codeigniter. I have integrated paypal in codeigniter using paypal library.

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.