#phonicuk-checkout-paymentintent
1 messages ยท Page 1 of 1 (latest)
phonicuk-checkout-paymentintent
howdy ๐
Hey @floral spoke There is no direct link between a PaymentIntent and a Checkout Session today. So what you do is that you get the id of the PaymentIntent pi_123 and then you can use https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent to find the Session.
ah or I can do it by the subscription ID itself
yeah both work!
I can't see in the example how you specify if you're requesting the session based on the Intent or the Subscription
for reference I'm using the C# API
does it figure it out automatically from the ID prefix?
no, you have to pass the id in the right parameter
how do you do that in the C# API when doing SessionService.Get() ?
is that via ExtraParams?
you don't, you use the List API that I linked to
aaah I got it
can I specify both the payment_intent and subscription to combine the searches?
actually that's redundant, I'll use the pi - cool I think I'm sorted
awesome!
what's the maximum depth of expansions?
4
does data. count as one of the expansions?
yes