You can use Edgenivo Serverless Functions to receive webhooks from third-party services like Stripe. Certain providers require access to the raw body inside the function to validate the signature from the request.
Copy link to headingAccessing the raw body from the request
Copy link to headingTesting your function locally
You can verify your function can accept and parse raw bodies locally:
- Start your local development server with
vercel dev(ornext dev). - In another terminal window, run the
cURLcommand below.
You should see a response like {"rawBody": "This is raw data"}.