#Jacob - Docs Error

1 messages ยท Page 1 of 1 (latest)

balmy pasture
#

Hello! Let me take a look...

outer ether
#

Hey, thanks

balmy pasture
#

The code looks right. I think your code might be using a Checkout Session instead of a Billing Portal session.

#

What do your using statements look like?

#

Let me check the .NET SDK to make sure too...

outer ether
#

Are there two different classes named SessionCreateOptions?

#

And SessionService.CreateAsync accepts the same type?

balmy pasture
#

Yeah, there's BillingPortal.SessionCreateOptions and Checkout.SessionCreateOptions

outer ether
#

Ah, then that's the issue. They're in the same file. So SessionService.Async is overloaded to take 2 different options types?

balmy pasture
#

There are two SessionServices I think, too.

#

One for BIllingPortal and one for Checkout.

outer ether
#

Oh I see, thanks

outer ether
#

I appreciate the fast help

balmy pasture
#

No problem! ๐Ÿ™‚

outer ether
#

That is a bit unintuitive, is that mentioned anywhere on the docs?

#

Just curious if I missed it

balmy pasture
#

I'm not sure, to be honest. I'm not a .NET developer. ๐Ÿ˜…

outer ether
#

Fair, well thanks

balmy pasture
outer ether
#

would be nice to prefix them like BillingSessionService or something, but i assume they're meant to be consistent with other stripe libs

#

it's just not apparent since using any modern development tools it imports stuff for you haha