#Marius_Stefanel

1 messages ยท Page 1 of 1 (latest)

civic totemBOT
soft kelp
#

Hello! What's up?

slender quail
#

So, Is there any way to get all checkout session paymanth intent ids with stripe api?

#

๐Ÿ™‚

soft kelp
slender quail
#

and can i delete one of the chekout session using stripe api?

soft kelp
#

No. What are you trying to do exactly?

slender quail
#

what does it mean var options = new Session List Options { Limit = 3, };?

soft kelp
#

The limit set there is how many Checkout Sessions you'll get per API request. I recommend you use auto pagination with a limit of 25 per request to start with and then adjust if needed: https://stripe.com/docs/api/pagination/auto

slender quail
#

k

civic totemBOT
slender quail
#

and, how can i get if the checout is succes??

spiral crystal
#

(or payment_status, depending on the use case and what you want to know)

slender quail
#

hmmm well i want to get id and the status of a Checkout Session

#

help?

spiral crystal
#

Sure, the status is what you want

#

Is that not working for you?

slender quail
#

I use this code:

#

StripeConfiguration.ApiKey = "sk_test_key";

        var options = new SessionListOptions
        {
            Limit = 100, 
            Status = "completed", 
        };

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

        foreach (Session session in sessions)
        {
            Console.WriteLine(session.Id);
            Console.WriteLine(session.PaymentIntent);
        }
#

and is an error at Status

#

That it does not exist in the Session List Options

#

Does checkout session will disappear? I mean, they are not deleted automatically?

spiral crystal
#

status is not a parameter for the list endpoint

#

its an attribute you'd inspect on the results

slender quail
#

with this cod i get the error:nhandled exception rendering component: Cannot wait on monitors on this runtime.
System.PlatformNotSupportedException: Cannot wait on monitors on this runtime.

spiral crystal
#

That doesn't appear to be a Stripe error

slender quail
#

so, how can i get all succes checkouts id?

spiral crystal
#

You list as you're doing and then filter by the status in your own code if that's what you wanted

civic totemBOT