Learn about API keys and how to authenticate requests to the Stripe API using the stripe-php client library. You can set API keys globally or per-request. In this episode, we cover secret keys, public or publishable keys, restricted keys, and webhook signing secrets.
Presenter
CJ Avilla - Developer Advocate at Stripe - / cjav_dev
Resources
Documentation: stripe.com/docs/api/authentic...
Official client library: github.com/stripe/stripe-php
Code: github.com/stripe-samples/dev...
Table of contents
00:00 Overview
00:08 Authorization header
00:18 Types of API keys
00:38 Publishable keys
01:00 Secret keys
01:44 Restricted keys
02:07 Webhook signing secrets
03:33 Roll API keys
04:03 Set API key globally
06:10 Set API key per-request
08:12 Authenticate requests for Stripe Connect globally
11:30 Conclusion
Support
If you have a question, please feel free to reach out to our support team on Discord at stripe.com/go/developer-chat.
Updates
Sign up to stay updated with developer news: go.stripe.global/dev-digest
Feedback
If you have any feedback about this or other episodes, let us know: forms.gle/VjNqzRhotM2snYo88.
13 июл 2024