#karuppasamy
1 messages · Page 1 of 1 (latest)
hi
Hi! Let me help you with this.
Hi, could you please try to update your SDK?
What version are you using now?
What programming language are you using?
dotnet
This parameter is present in your version.
What's the exact error you're seeing when you hover over red area?
SessionCreateOptions doesnot contain definition for 'ReturnURL'
Please give me a moment to check
Hi! I'm taking over this thread.
The code you shared looks similar to the one I see in the doc here: https://stripe.com/docs/api/customer_portal/sessions/create?lang=dotnet
Could you try updating your version of stripe-dotnet to the latest version to see if that solves the issue?
The latest version is v41.20.0
That's odd. Can you share the exact error message you see?
SessionCreateOptions doesnot contain definition for 'ReturnURL'
👋 taking over for my colleague. Let me catch up.
it's called success_url not return_url in Checkout Sessions https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-success_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh sorry, it's the customer portal session
looking into this, sorry again for the confusion
based on
https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs#L63
there is a ReturnUrl
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs at master · stripe...
after updating the version, would you mind trying to Clean the project
and build again?
you need to add using Stripe.BillingPortal
SessionCreateOptions exists as both Stripe.BillingPortal.SessionCreateOptions (which is what you want), and Stripe.Checkout.SessionCreateOption ( which is what it's resolving to now but that you don't want)
@mental elk do you think it's pulling from the CheckoutSessions SessionCreateOptions?
yes but still getting error