The Stripe API doesn’t include a way to validate publishable and secret API keys.
Here’s a simple function you can use to do that:
https://codeberg.org/aral/gists/src/branch/main/validateStripeKey.md
#stripe #api #stripeapi #js #nodejs #web #dev #gist