-
Notifications
You must be signed in to change notification settings - Fork 658
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
Conversation
*/ | ||
@Deprecated("Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using you secret key instead.") |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see other comment
Summary
Deprecates the
metadata
field inSource
,PaymentMethod
, andCard
.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