#FlameGlecko-net
1 messages · Page 1 of 1 (latest)
hi, attempted a new payment intent create against an existing customer, it failed due to stolen card which is fine. the sdk throws a StripeException and that has json in the content which I thougth I would be able to deserialize to a StripeError object. but it doesn't. Do I just have to create my own type or is there a built in way ?
I think you can just access all the fields directly, like the examples at https://stripe.com/docs/api/errors/handling?lang=dotnet ?
omg.. sorry. I somehow did not see the .StripeError property, I was using the .StripeResponse.Content. How embarrassing 😉