Authentication with stripe-php

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…

Authentication with stripe-php

Source

0
(0)

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 – https://twitter.com/cjav_dev

### Resources

Documentation: https://stripe.com/docs/api/authentication
Official client library: https://github.com/stripe/stripe-php
Code: https://github.com/stripe-samples/developer-office-hours/blob/master/2020-10-30-client-libraries/php/authentication.php

### 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 at https://support.stripe.com/ or on Discord at https://stripe.com/go/developer-chat.

### Updates

Sign up to stay updated with developer news: https://go.stripe.global/dev-digest

### Feedback

If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.

0 / 5. 0