#busy_piglet_71670 - client reference ids via payment links

1 messages · Page 1 of 1 (latest)

long zincBOT
blazing swan
#

The client reference ID is propagted only to the Checkout Session objects, not the subscription

#

have you checked the session object too?

#

Can you share an example subscription?

coral nebula
#

not sure if you can access this link.

#

I don't see session object in the response attached.

blazing swan
#

You would want to subscribe to these checkout.session.completed events, you can see the client reference ID is there

#

busy_piglet_71670 - client reference ids via payment links

coral nebula
#

ok nice... How can I get this session data using API? and looks like they are tied to subscription using "subscription": key

blazing swan
#

Then you'd get the client refernce id from the returned object (there should only be one in the list)

coral nebula
#

Thank you for the clarification. I am attempting to retrieve a list of sessions using the .NET API for Stripe. However, I am encountering an issue where the SessionService class doesn't seem to exist in the Stripe library. Here's the code snippet that I've tried:

var options1 = new SessionListOptions
{
Limit = 100,
};

var service = new SessionService();
StripeList<Session> sessions = service.List(options1);

I'm receiving an error message stating, "The type or namespace name 'SessionService' could not be found (are you missing a using directive or an assembly reference?)."

Interestingly, I am able to use the SubscriptionService class without any problems. Is there another library or package that I need to install or include to resolve this issue?

Thank you for your assistance.

blazing swan
#

What version of the dotnet sdk are you using?

#

If its old you might need to update for this

coral nebula
#

I am using latest version : 42.2.0

blazing swan
#

I'm not sure why you wouldn't be able to refer to that

long zincBOT
coral nebula
#

Yes.. I am also not sure... Despite reinstalling the Stripe API and restarting Visual Studio, I continue to encounter the same issue. The error message remains: "The type or namespace name 'SessionService' could not be found (are you missing a using directive or an assembly reference?)."

Is there anything else you could suggest to resolve this problem?

Thank you for your assistance.

severe zinc
#

Interesting. Are you able to refer to any Stripe objects? And is this a build error or is it just intellisense but the build still works?

blazing swan
#

You might need to add a using Stripe.Checkout; to hint at the right namespace, there are multiple SessionService -shaped things