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

Source "card_present" entity #1525

Closed
DanWM opened this issue Feb 19, 2019 · 2 comments
Closed

Source "card_present" entity #1525

DanWM opened this issue Feb 19, 2019 · 2 comments

Comments

@DanWM
Copy link

DanWM commented Feb 19, 2019

Captured Payment Intents that were collected by the Terminal API from a card reader include charges data which has a source entity that contains a card_present entity. However, card_present is not available in Stripe .NET so I'm not able to access it after casting the charge source to a source. Instead, I have to parse the intent ResponseJson to get to it.
For instance: (string)jso["charges"]["data"][0]["source"]["card_present"]["last4"]
Will this be available in the future, or am I missing it in the API ?

@ob-stripe
Copy link
Contributor

Hi @DanWM, thanks for reporting this. I've prepared a fix in #1526 and we'll release an updated version of the library shortly.

@ob-stripe
Copy link
Contributor

@DanWM This is fixed in Stripe.net 23.2.0, which should appear on Nuget in a few minutes. Source objects now have a CardPresent property.

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

No branches or pull requests

2 participants