stripe / stripe-apps

Stripe Apps lets you embed custom user experiences directly in the Stripe Dashboard and orchestrate the Stripe API.
https://stripe.com/docs/stripe-apps
MIT License
148 stars 73 forks source link

dropbox-oauth-pkce example does not use SDK for secret store #930

Open msssk opened 1 year ago

msssk commented 1 year ago

Your Problem

Trying to learn about storing secrets

Existing Documentation URLs (If applicable)

The dropbox-oauth-pkce example uses Stripe.StripeResource (which I can't find any documentation for) to make api calls. The secret-store example uses the simpler Stripe SDK. Which is the best approach and why?

gabrielhurley-stripe commented 1 year ago

Thanks for the report. The stripe.apps.secrets methods are the preferred way of interacting with secret store. The other method is outdated. Stripe.StripeResource is an internal utility class from the SDK, and while the usage in that example is valid, is not something we document for general use. I'll add this to our to-do list to update the example.