Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

How to listening IPN using PHP?? #117

Closed
MESWEB opened this issue Dec 26, 2017 · 6 comments
Closed

How to listening IPN using PHP?? #117

MESWEB opened this issue Dec 26, 2017 · 6 comments

Comments

@MESWEB
Copy link

MESWEB commented Dec 26, 2017

General information

  • Environment: Sandbox
  • PayPal-Debug-ID values:
  • Language, language version, and OS: PHP 7

Issue description

I'm using smple code from this repository for PHP language. I'm trying send IPN using Sandbox IPN on development PayPal website but my both servers don't receive any POST message from PayPal. What's problem?

@overint
Copy link
Contributor

overint commented Dec 26, 2017

Something in between your server & PayPal is probably blocking the messages.
Have you made sure all firewalls and filtering has PayPal's IP addresses excluded or are turned off?

@randstraw
Copy link

@MESWEB were you able to resolve?

@marcelo2605
Copy link

marcelo2605 commented Jan 2, 2018

Same problem here, with PHP 7 and WP Engine host:

if(isset( $_GET['payment'] ) && $_GET['payment'] == 'paypal'){

	$ipn = new PaypalIPN\PaypalIPN();
	$ipn->useSandbox();
	$verified = $ipn->verifyIPN();
	if ($verified) {
		error_log( 'verifed' );
	}else{
		error_log( 'not verified' );
	}
	header("HTTP/1.1 200 OK");
}

@marcelo2605
Copy link

Fixed the problem removing payment_date value from IPN Sandbox, as mentioned here: #51

@BigRedBot
Copy link
Contributor

This should be fixed with this pull request: #119

I have tested it sandboxed and live with no issues so far.

@MESWEB
Copy link
Author

MESWEB commented Jan 7, 2018

Problem solved.

@MESWEB MESWEB closed this as completed Jan 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants