#javier-golang
1 messages ยท Page 1 of 1 (latest)
hi @gloomy scarab !! thanks!! i'm newbie in discord and i didn't know how to open a thread ๐ Nope, unfortunately, it doesn't work: "assignment mismatch: 2 variables but paymentmethod.List returns 1 values"
ok, I don't know off the top of my head either and don't use our Go SDK much but let me investigate it a bit
thanks!! ๐ , I've been playing for a while and not luck .. since there is no try/catch "concept", it's odd.. imagine that the API key is incorrect or the customer doesn't exist, the list is empty and that's it!!, there is no way to realise that the API call failed ๐ค
as far as I can tell maybe you would use recover here though I haven't been able to make it work with our library
I don't think that helps because we already recover the panic in our library, but then you can't get the details of that. But yeah it's a really good question. If you have a Github account I'd suggest posting an issue on https://github.com/stripe/stripe-go asking how to handle errors from list calls like that one, or otherwise if you write to https://support.stripe.com/?contact=true we can dig in and ask more people internally and get you an answer.
ok! thanks for the help @gloomy scarab , very appreciate it ๐