-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing generateHeaderString as generateWebhookHeaderString #609
Exposing generateHeaderString as generateWebhookHeaderString #609
Conversation
@@ -1 +1,2 @@ | |||
*.node*.js | |||
node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this cause the linter would yell about node_modules
files, which you could have in the /examples
directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the added docs, too!
…ader-generator Exposing generateHeaderString as generateWebhookHeaderString
…ader-generator Exposing generateHeaderString as generateWebhookHeaderString
Fixes #601
Exposes
generateWebhookHeaderString
so users can mock Stripe webhook events. This feature already existed within the repo, this just lets others play with it.I moved some constants around and changed
generateHeaderString
to also accept an instance ofstripe
, in case you already have a spyable instance you want to reuse.r? @rattrayalex-stripe @ob-stripe