#Jacob - Docs Error
1 messages ยท Page 1 of 1 (latest)
Hey, thanks
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...
Are there two different classes named SessionCreateOptions?
And SessionService.CreateAsync accepts the same type?
Yeah, there's BillingPortal.SessionCreateOptions and Checkout.SessionCreateOptions
Here's the one for the Billing Portal that has the ReturnUrl: https://github.com/stripe/stripe-dotnet/blob/bc7633ae0db142caa0a545de93b00ae62ede75d2/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs#L50-L55
Ah, then that's the issue. They're in the same file. So SessionService.Async is overloaded to take 2 different options types?
There are two SessionServices I think, too.
One for BIllingPortal and one for Checkout.
Oh I see, thanks
I appreciate the fast help
No problem! ๐
That is a bit unintuitive, is that mentioned anywhere on the docs?
Just curious if I missed it
I'm not sure, to be honest. I'm not a .NET developer. ๐
Fair, well thanks
There are a few mentions in the changelog, like this one: https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#3640---2020-04-22