Have you tried to mock out the request using some REST API tool? When I was doing my developing I used Advanced Rest Client. As PayPal is using OAuth 2.0 for authentication make sure you send a request out to the token api (basic auth using your API client and secret) this then returns an access token, for future requests set your authentication as Bearer with the token.
... View more
Hello everyone, thanks for taking the time for reading my question.
I'm trying to setup Paypal webhooks to notify me on specific events, for example when orders are completed. For the webhook URL I want it to go to my API Gateway resource, where then I want to automatically enter some data into a database (among other stuff) via the use of Lambda functions.
I've setup my API Gateway service (just a rest interface with no authorisation), and i've tested it, and AWS side everything works as it should. Now, when I try and use the "WebHooks Simulator", I'm expecting the webhook to send some data to API Gateway, and then through to my lambda function. Now, this is where something is going wrong. I'm checking my logs on CloudWatch, and nothing is coming through, no errors, no info... Which means there seems to be some connectivity problem from Paypal -> AWS.
As AWS seems to work as expected during my testing, I've decided to reach out here to figure out if anyone has any ideas why it is failing?
... View more