#bryan_07234
1 messages ยท Page 1 of 1 (latest)
Hi let's chat in this thread
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>
Maybe I'm just not coding it right, but I thought the response was an XML string like on this page. https://stripe.com/docs/api/accounts/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do I need to get the Account object in some other way than in the response to the service.Create() call?
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
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.
Glad you got it
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?
Of course
I'm not sure how tolerant you all are about simple questions.
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
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.
Ha no worries at all