stripe/stripe-apps

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

msssk opened this issue · 1 comments

msssk commented

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?

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.