stripe-node
stripe-node copied to clipboard
Add generateTestHeaderStringAsync function to Webhooks.ts
Currently, generateTestHeaderString throws a CryptoProviderOnlySupportsAsyncError when executed in Bun and other non-Node environments. This presents a limitation for users attempting to utilize this function outside of Node.js.
This PR addresses this issue by adding generateTestHeaderStringAsync. With this, creating a test header string in non-Node environments becomes more seamless and straightforward.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Hey @zelief
There is some duplicated code between generateTestHeaderString and generateTestHeaderStringAsync. Can you consider sharing code between the two to ensure they dont diverge in the future?
Hey @zelief
There is some duplicated code between
generateTestHeaderStringandgenerateTestHeaderStringAsync. Can you consider sharing code between the two to ensure they dont diverge in the future?
Sure @ramya-stripe, I will update it. Thanks for the review!
Updated @ramya-stripe, kindly check.