#bryan_07234

1 messages ยท Page 1 of 1 (latest)

tame meadowBOT
soft mountain
#

Hi let's chat in this thread

harsh sparrow
#

OK thank you

#

var service = new AccountService();
try
{
var response = service.Create(options);
var accountId = response.StripeResponse.ToString();

#

I'm expecting the response to contain at least the account id, but I'm getting back this:

#

<Stripe.StripeResponse status=200 Request-Id=req_GEXl38JtOIyhpi Date=2023-08-04T20:00:27>

#

Do I need to get the Account object in some other way than in the response to the service.Create() call?

soft mountain
#

I don't think you need to call response.StripeResponse

#

Try just printing response

#

I'm not a .net expert though, so bare with me

harsh sparrow
#

Never mind, actually. I figured it out. I actually am getting the Account object back, I just need to set accountId = response.Id. ๐Ÿ™‚ Simple.

#

It works now. Thanks for your patience with me. ๐Ÿ™‚

#

There doesn't seem to be much documentation or examples with Stripe in a .NET app. Maybe I can be the guinea pig.

soft mountain
#

Glad you got it

harsh sparrow
#

I'm going to have more questions as I learn Stripe and how to integrate it. Is it OK to keep asking on this channel?

soft mountain
#

Of course

harsh sparrow
#

I'm not sure how tolerant you all are about simple questions.

soft mountain
#

We just ask you try to look up the answer yourself first and try something first before asking ๐Ÿ˜ƒ

#

But if you're struggling to understand something or hitting an error, we're happy to help

harsh sparrow
#

OK will do. Thank you so much. This stripe project is a side job for me -- I've been a support programmer for over 35 years, so I know people like me can be a PITA. ๐Ÿ˜‰

#

Thanks again.

soft mountain
#

Ha no worries at all