Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

sandbox setup webhooks gives error #4

Open
sachinbanugariya opened this issue Mar 29, 2018 · 2 comments
Open

sandbox setup webhooks gives error #4

sachinbanugariya opened this issue Mar 29, 2018 · 2 comments

Comments

@sachinbanugariya
Copy link

hello,
after install paypal-api plugin it gives below backend error while try to click on "setup sandbox webhook" :

[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : DEBUG: Request Headers : GET /v1/notifications/webhooks/xxx02004311505xxx HTTP/1.1, Host: api.sandbox.paypal.com, Accept: /, Content-Type: application/json, User-Agent: PayPalSDK/PayPal-PHP-SDK 1.11.0 (platform-ver=5.6.33; bit=64; os=Linux_3.10.0-693.11.6.el7.x86_64; machine=x86_64; crypto-lib-ver=1.0.2k-fips; curl=7.29.0), Authorization: Bearer xxxAAEjxsV4h6OPottWyW-XQ8Gt5-V6pNBMRcyIM47cFYWAvckQ2smfGbYvSLac34oak3H0mrehv1R4rTjat-ozTwCHHcvxxx, ,
[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : DEBUG: No Request Payload

[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : INFO: Response Status : 404
[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : DEBUG: Response Headers : HTTP/1.1 404 Not Found, Date: Thu, 29 Mar 2018 06:04:36 GMT, Server: Apache, paypal-debug-id: 25d7bdbbc8579, Pragma: No-cache, Cache-Control: no-cache, Expires: Wed, 31 Dec 1969 16:00:00 PST, Content-Language: *, HTTP_X_PP_AZ_LOCATOR: sandbox.slc, Paypal-Debug-Id: 25d7bdbbc8579, Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dapiplatformproxyserv%26TIME%3D4102143066%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Thu, 29 Mar 2018 06:34:36 GMT; domain=.paypal.com; path=/; Secure; HttpOnly, Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT, Vary: Authorization, Content-Length: 154, Connection: close, Content-Type: application/json, ,
[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 404 when accessing https://api.sandbox.paypal.com/v1/notifications/webhooks/6650200431150562E. {"name":"INVALID_RESOURCE_ID","details":[],"message":"Resource id is invalid","information_link":"https://developer.paypal.com/docs/api/webhooks/#errors"}
[29-03-2018 06:04:36] PayPal\Core\PayPalHttpConnection : DEBUG:

also seems front-end error like:

There was an error contacting PayPal
There was a problem with webhook configuration.
it works fine on localhost but not work on our site.

please let us know why webhook setup for sandbox not done.
thanks.

@hypeJunction
Copy link
Owner

I believe there were changes to how PayPal handles webhook, so you don't have to make an API call anymore to set them up. You can do that via the Sandbox interface and then store the webhook ID in Elgg. That's a manual solution for now, I am not sure, when I am going to get to fixing the issue, especially with my "crazy" love for PayPal and their backwards APIs.

@sachinbanugariya
Copy link
Author

ok,
thanks lets we check that.

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

2 participants