Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate metadata field on retrieved API objects #2704

Merged
merged 5 commits into from
Aug 13, 2020

Conversation

smaskell-stripe
Copy link
Contributor

Summary

Deprecates the metadata field in Source, PaymentMethod, and Card.

Motivation

This field is now only accessible via secret key due to security concerns. Clients never have access to a secret key so we cannot make use of this field.

Testing

*/
@Deprecated("Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using you secret key instead.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"on your backend" vs "on your server"? Not sure the preferred wording.

"your secret" instead of "you secret"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good catch. I literally just copy-pasted this from iOS so it will need to be updated there as well cc @csabol-stripe.

Don't have a strong opinion on backend vs server

*/
@Deprecated("Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using you secret key instead.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see other comment

@smaskell-stripe smaskell-stripe merged commit 4ba1fb4 into master Aug 13, 2020
@smaskell-stripe smaskell-stripe deleted the smaskell/deprecate-metadata branch August 13, 2020 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants