#phonicuk-payment-intent

1 messages · Page 1 of 1 (latest)

clever tapir
#

Yes. A new Payment Intent is created each time the customer is invoiced for the month

finite fractal
#

Perfect, so as with one-time payments it remains valid to use the payment intent ID as my unique identifier for that payment

#

related: when I get a CheckoutSessionCompleted for a subscription, there's no payment intent ID unlike one-time payments. Is there a way to get at that point the ID of the first payment intent from a subscription ID or the checkout session ID?

clever tapir
#

when I get a CheckoutSessionCompleted for a subscription, there's no payment intent ID
The Event should contain the Checkout Session ID, which you can use to make a subsequent call to retrieve that Checkout Session (which has the Payment Intent ID in it under session.payment_intent): https://stripe.com/docs/api/checkout/sessions/retrieve

finite fractal
#

ah gotcha, looks like it's a quirk of the C# API that it looks like you should be able to get the PaymentIntentId at that point as standard even though you can't

#

So I'd just request the session with the "payment_intent" expanded

clever tapir
#

Yeah, exactly

finite fractal
#

weird that one-time payments include it as standard but subscriptions don't but no biggie