Interacting with Stripe API
Get hands-on experience with the Stripe API.
We'll cover the following
Authentication
The Stripe API provides API keys so that it can authenticate your requests. API key grants complete access to your account and hence it must be stored securely and should not be pushed to any public repositories.
Let’s use the secret key to start interacting with Stripe. You need to provide this key in the following widget. As soon as you provide the key, it’s stored in the SECRET_KEY
variable in line 3. We then pass this key to the Stripe()
function in line 5, which returns an object that will be used to make further requests.
Get hands-on with 1200+ tech skills courses.