(1.)
Stripe supports signing requests made to your webhook with a signature set in the Stripe-Signature
header.
Stripe provides multiple official libraries in different languages for verifying signatures and you also need an API key for a successful verification.
You can create new API keys at https://dashboard.stripe.com/apikeys.
const stripe = require('stripe')('sk_test_26PHem9AhJZvU623DfE1x4sd'); // Set API Key.