Thanks for sharing your manual verification code, unfortunately it is not working for me.
I see 3 different hashes for v0, v1 and hmac.
One thing I don’t understand is how the generation of signedPayload in step 2 can work?
const signedPayload = {timestamp}.{event.body};
When I log this out I see:
1590179791.{
"id": "evt_1GlhbVHypXujNqlR6Edxh3Bc",
"object": "event",
"api_version": "2020-03-02",
"created": 1590179788,
"data": {
...
}
}
But thought this should be a Buffer or something like that?
Any help greatly appreciated. Seems I can’t avoid using a webhook to verify purchases on Stripe. I will have to have a closer look at their library next.