Correctly parsing webhook requests for both endpoints for both Hubspot and Stripe APIs
I am building an app on the marketplace in which I receive webhooks from the app and then make api calls to perform certain actions.
I am using the Hubspot API for most functions and the Stripe API to collect payment and verify payment status. The entire code is written in Node JS and I am running the express node js library to listen to endpoints and deal with requests.
I am using express.raw because of the stripe API which requires the raw request to be called into some kind of Buffer. Now this is the call for an example endpoint for a non-Stripe call, such as getting account settings for Hubspot