-
Notifications
You must be signed in to change notification settings - Fork 573
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
Add support for Cvc
and Number
on Issuing Card
#2003
Conversation
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.
One question, but not blocking.
/// be omitted unless you explicitly expand it in the request. | ||
/// </summary> | ||
[JsonProperty("cvc")] | ||
public string Cvc { get; set; } |
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.
in the api ref this is expandable, but I'm not sure what it would expand to? do we need to make this expandable here?
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.
No we don't. Expandable here means "includable" which means the field is not present unless you expand it.
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.
ack
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.
I didn't realize that some scalar fields could be expanded.
@clement911 This feature is brand new and those fields are the first ones we implemented. We use the |
I see, thanks for the details. I do have a bit of feedback (hopefully you're not too tired yet of me doing this on a regular basis) One thing that worries me a bit with these includable fields is the way this will be handled with respect to events/webhooks. Will these fields be included in events? I could see this becoming a problem if this technique becomes generalized for many fields but I'm sure it's something you've considered. Not to get too far down this rabbit hole, but I think it would be useful if, when registering a webhook endpoint, we could specify not only the events we want to listen to, but also the fields that we would like to have expanded. |
The card has
For sure though I think we might be better off keeping one unique github issue for all high level feedback and not the PR itself.
No they won't be in events. It would be really dangerous if we sent the full card number and CVC in events.
I disagree that it would be "very inefficient". There's no reason to need the card number and CVC in the event. This is a sensitive operation that you do on purpose when you need to reveal the card number to your customer usually because they explicitly request it.
Yes we have and put a lot of thought into it and have been discussing this feature for a long time internally.
We're aware of this and we definitely wouldn't remove something that prevents any integration from knowing about data being created.
We could as needed in the future. But we won't at first. For now expandable fields apply to 2 brand new properties for a really specific integration path for Issuing integrations! We'll definitely keep an eye on this and introduce any feature needed for integrations to continue using our product properly! |
Sweet!
OK. Do you want to create that issue and I'll post feedback there instead?
Oh sure, for CVC and card number it totally makes sense but I was thinking of includable/expandable fields in general, including ones that are includable/expandable for performance reasons and not security reasons (as you said there will be more of these in the future). |
Let's wait for the next one you find and then we can use it as a canonical issue to report that kind of problems/questions! |
Mirrors part of stripe/stripe-java#1010
r? @cjavilla-stripe
cc @stripe/api-libraries