FluxCP icon indicating copy to clipboard operation
FluxCP copied to clipboard

Notification failed to verify

Open reunite-ro opened this issue 5 years ago • 34 comments

[2019-04-28 07:00:06] Establishing connection to PayPal server at www.paypal.com:443...
[2019-04-28 07:00:06] Connected. Sending request back to PayPal...
[2019-04-28 07:00:06] Sent 1142 bytes of transaction data. Request size: 1287 bytes.
[2019-04-28 07:00:06] Reading back response from PayPal...
[2019-04-28 07:00:06] Notification failed to verify. (recv: <HTML><HEAD><TITLE>ACCESS DENIED</TITLE></HEAD><BODY><H1>ACCESS DENIED</H1>YOU DON'T HAVE PERMISSION TO ACCESS "HTTP&#58;&#47;&#47;WWW&#46;PAYPAL&#46;COM&#47;CGI&#45;BIN&#47;WEBSCR" ON THIS SERVER.<P>REFERENCE&#32;&#35;18&#46;2FE51CB8&#46;1556434806&#46;5B69004</BODY></HTML>)
[2019-04-28 07:00:06] Transaction invalid, aborting.

This is the log from paypal.log.php . Im so sure the IPN, email address is correct and the transaction is successful because the cash is transferred.

The problem is, the error log above, also there is no log for transaction in fluxCP recorded and no credit added to the donater.

Ive tried using sandbox but cannot login using real paypal acc, and ive tried 2 times using real accounts with live paypal (not sandbox).

Any way to fix this issue ?

reunite-ro avatar Apr 28 '19 12:04 reunite-ro

Probably your server IP address is suspicious for PayPal. Google said that User-Agent header parameter can help sometimes.

Add here https://github.com/rathena/FluxCP/blob/4ea0eef562d824e5032ae9c31c7bc3c854e0e869/lib/Flux/PaymentNotifyRequest.php#L399

...
$request .= 'Content-Length: '.strlen($qString)."\r\n";
$request .= "User-Agent: MyServerUserAgent\r\n"; // this line, with any name i guess.
$request .= 'Host: '.$this->ppServer."\r\n";
...

sanasol avatar Apr 28 '19 17:04 sanasol

i actually have the same issue since the same day, it´s possible that paypal changed something these days?

OptimusM avatar Apr 28 '19 21:04 OptimusM

Paypal made some changes last two days I think. not sure what are the changes.

earnestinence avatar Apr 28 '19 21:04 earnestinence

Looks like ipn domain changed Can someone try it?

sandbox domain

'PayPalIpnUrl'				=> 'ipnpb.sandbox.paypal.com'

production

'PayPalIpnUrl'				=> 'ipnpb.paypal.com'

sanasol avatar Apr 28 '19 22:04 sanasol

ipnpb.sandbox.paypal.com

ive tried that just now, not even complete loading the pages.

image

reunite-ro avatar Apr 28 '19 23:04 reunite-ro

It shouldnt open like it, serves only POST requests.

sanasol avatar Apr 28 '19 23:04 sanasol

It shouldnt open like it, serves only POST requests.

the screenshot that i gave is when i changed the IPN that u want us to test above.

'PayPalIpnUrl' => 'ipnpb.paypal.com'

After click the donation button, it will load to that page.

If anyone have any idea regarding this issue please tell me, im willing to test it.

reunite-ro avatar Apr 29 '19 00:04 reunite-ro

tested on sandbox url too, loaded good and payment done

sanasol avatar Apr 29 '19 00:04 sanasol

tested on sandbox url too, loaded good and payment done

ive test on sandbox (ipnpb.sandbox.paypal.com) , cant login paypal to pay. ive test on production(ipnpb.paypal.com), the page loading like the picture given below. image

After around 3-5 minute loading it, paypal requires recaptcha, and failed to open the page https://ipnpb.paypal.com/auth/validatecaptcha.

reunite-ro avatar Apr 29 '19 02:04 reunite-ro

@reunite-ro did you fix this issue? bc i still have this problem :/

OptimusM avatar May 05 '19 01:05 OptimusM

@OptimusM try new paypal domains too.

sanasol avatar May 05 '19 12:05 sanasol

@reunite-ro did you fix this issue? bc i still have this problem :/

still having this problem.

@OptimusM try new paypal domains too.

have tried for ipnpb too.

reunite-ro avatar May 05 '19 12:05 reunite-ro

I can donate But no credit to my account and without any error notification Video donate

  • Sorry, I'm not good at English.

Azael-Dev avatar May 06 '19 18:05 Azael-Dev

@Azael-Dev Your site is local, it wont work... Paypal should send notification to your site.

sanasol avatar May 06 '19 18:05 sanasol

@Azael-Dev Your site is local, it wont work... Paypal should send notification to your site.

I can test through ngrok have?

Azael-Dev avatar May 06 '19 19:05 Azael-Dev

Should probably work, but need make sure that FluxCP know that you use ngrok and generate correct notify_url.

image

sanasol avatar May 06 '19 19:05 sanasol

I can donate But no credit to my account and without any error notification Video donate

  • Sorry, I'm not good at English.

u will find this error in data/logs/paypal.log.php

[2019-05-04 08:43:29] Received notification from 173.0.81.1 (notify.paypal.com)
[2019-05-04 08:43:29] Query string: cmd=_notify-validate&mc_gross=11.25&protection_eligibility=Eligible&address_status=unconfirmed&payer_id=C5WSLNS54FFSA&tax=0.00&address_street=No.33+Palm+Villa%0D%0AJalan+Tun+Hussein+Onn&payment_date=01%3A43%3A24+May+04%2C+2019+PDT&payment_status=Completed&charset=windows-1252&address_zip=97000&first_name=Kevin&mc_fee=0.74&address_country_code=MY&address_name=Kevin+Ngu&notify_version=3.9&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czo1OiJCRyBSTyI7czoxMDoiYWNjb3VudF9pZCI7czo3OiIyMDAwMjUwIjt9&payer_status=unverified&business=unlimitedstage8%40gmail.com&address_country=Malaysia&address_city=Bintulu&quantity=0&verify_sign=AwtG70dY2pwgBB0mVk8mXXFpOn0XAKVhj3mE8CagfKJdscA-S1LKSf1I&payer_email=miclss1122%40gmail.com&txn_id=3PC70061MV779024M&payment_type=instant&last_name=Ngu&address_state=Sarawak&receiver_email=unlimitedstage8%40gmail.com&payment_fee=0.74&receiver_id=TC2BWUPKBU4YJ&txn_type=web_accept&item_name=Donation+Credits%3A+1%2C800+CREDIT%28s%29&mc_currency=USD&item_number=&residence_country=MY&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czo1OiJCRyBSTyI7czoxMDoiYWNjb3VudF9pZCI7czo3OiIyMDAwMjUwIjt9&payment_gross=11.25&ipn_track_id=362f7be2cf6e5
[2019-05-04 08:43:29] Establishing connection to PayPal server at www.paypal.com:443...
[2019-05-04 08:43:29] Connected. Sending request back to PayPal...
[2019-05-04 08:43:29] Sent 1161 bytes of transaction data. Request size: 1306 bytes.
[2019-05-04 08:43:29] Reading back response from PayPal...
[2019-05-04 08:43:29] Notification failed to verify. (recv: <HTML><HEAD><TITLE>ACCESS DENIED</TITLE></HEAD><BODY><H1>ACCESS DENIED</H1>YOU DON'T HAVE PERMISSION TO ACCESS "HTTP&#58;&#47;&#47;WWW&#46;PAYPAL&#46;COM&#47;CGI&#45;BIN&#47;WEBSCR" ON THIS SERVER.<P>REFERENCE&#32;&#35;18&#46;2FE51CB8&#46;1556959409&#46;2435DAEF</BODY></HTML>)
[2019-05-04 08:43:29] Transaction invalid, aborting.

reunite-ro avatar May 06 '19 19:05 reunite-ro

Should probably work, but need make sure that FluxCP know that you use ngrok and generate correct notify_url.

image

which ipn are u using in config/application.php ?

Its weird its still not work for me even using ipnpb.paypal.com

Transaction paypal success but will not adding any points in account.

reunite-ro avatar May 06 '19 19:05 reunite-ro

@reunite-ro as you see from screenshot ipnpb.sandbox.paypal.com and it works for me :|

sanasol avatar May 06 '19 19:05 sanasol

Alt Text

I can test donations through localhost using ngrok 'PayPalIpnUrl' => 'www.sandbox.paypal.com' Thank you <3

Azael-Dev avatar May 06 '19 19:05 Azael-Dev

@reunite-ro looks like it works for Azael-Dev with old domain (www.sandbox.paypal.com)

Maybe then its some problem with your server IP or something?

Weird things happen here :D

sanasol avatar May 06 '19 19:05 sanasol

@reunite-ro maybe because youre using localhost

hurtsky avatar May 07 '19 08:05 hurtsky

@reunite-ro Just place the host as your web url or ip

UniC7440 avatar May 07 '19 12:05 UniC7440

@hurtsky @UniverseCodes He is trying on hosting since he post logs about errors while connecting to paypal i.e. actually got callback from paypal that trigger payment verification code.

sanasol avatar May 07 '19 14:05 sanasol

Maybe paypal api is having issues. Or maybe the code itself. Since it fails to verify to paypal.

UniC7440 avatar May 07 '19 14:05 UniC7440

Have an issue, I already configured the IPN on PayPal so I can donate but no Cash Points are assigned to the account, after donation PayPal returns me to the CP main page without notification.

[2019-05-11 03:40:00] Received notification from 50.116.94.239 (50.116.94.239)
[2019-05-11 03:40:00] Transaction invalid, aborting.
[2019-05-11 03:40:00] Hack detected!`

I already tried to use both: ipnpb.sandbox.paypal.com and www.sandbox.paypal.com

Songbirdl avatar May 11 '19 07:05 Songbirdl

@Songbirdl your nginx/apache probably configured lil bit incorrectly. Its doesnt bypass correct IP of client to php(FluxCP)

50.116.94.239 - this is not PayPal IP, should be one of PayPal list(https://www.paypal.com/fm/smarthelp/article/what-are-the-ip-addresses-for-live-paypal-servers-ts1056) So this ip 50.116.94.239 probably of your server or something like.

sanasol avatar May 11 '19 08:05 sanasol

@Songbirdl ipnpb is 173.0.82.66

Edit: There are actually many

UniC7440 avatar May 11 '19 08:05 UniC7440

Hello, ive tried

'PayPalIpnUrl' => 'ipnpb.paypal.com'

and its working. I think later you can update the information in config/application.php for it.

reunite-ro avatar May 25 '19 17:05 reunite-ro

same problem. using:

PayPalIpnUrl' => 'ipnpb.paypal.com

No work for me

Triedge avatar Jul 15 '19 01:07 Triedge