#robotuner

1 messages · Page 1 of 1 (latest)

stone tundraBOT
craggy heron
#

Hi there 👋 I'm not sure what you're referring to when you say "CS0117 is telling me there is not ReturnURL in SessionCreateOptions". Can you elaborate on that a bit? Is that error coming from the Stripe API, or somewhere else?

hybrid knoll
#

thats just the dot net build error.

craggy heron
#

Hm, if you provide a hard coded URL for ReturnUrl, is the error still encountered? Or is it only occurring with the syntax you currently have?

hybrid knoll
#

yes, dot net doesn't think there is a ReturnUrl field in SessionCreateOptions. In fact, if I look at class there isn't a ReturnUrl, there is a SuccessUrl, thats why I tried it.

craggy heron
#

Oh, you're saying the compiler is saying that field doesn't exist on the SessionCreateOptions object? What version of our dotnet library are you currenlty working with?

hybrid knoll
#

.NET 7.0

craggy heron
hybrid knoll
#

I'm using 42.5, I'll upgrade to 42.7 to see if the makes a difference.

#

Did not change anything, compiler still doesn't think SessionCreateOptions contains a ReturnUrl

craggy heron
#

42.5 is new enough that I don't think that would have made a difference here. Are you pulling in the correct type of SessionCreateOptions?

hybrid knoll
#

Correct Type? probably not! All I'm doing creating a new SessionCreateOptions object, then trying to set the two values, customer and returnUrl. Are there other types of SessionCreateOptions?

hybrid knoll
#

so it looks like I've created one for checkout. OK, how do I access the one in FinancialConnections or BillingPortal?

craggy heron
#

Gotcha, the Billing Portal one is the one you're after when working with the Customer Portal.

Hm, it doesn't look like we have a full end-to-end example of that in dotnet. I was hoping to use that as an example.

Can you share the import line that is currently being used to import SessionCreateOptions? (sorry if my verbiage is off a bit, dotnet is a language I'm less familiar with)

stone tundraBOT
hybrid knoll
#

Got it! I needed to add a using statement: using Stripe.BillingPortal at the top of my file. Thanks.

craggy heron
#

Awesome! Glad to hear you were able to get to the bottom of it!

hybrid knoll
#

Stripe tech support is the best I have encountered. Sometimes it just takes talking with someone to make life easier.