#phonicuk-payment-intent
1 messages · Page 1 of 1 (latest)
Yes. A new Payment Intent is created each time the customer is invoiced for the month
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?
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 undersession.payment_intent): https://stripe.com/docs/api/checkout/sessions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Yeah, exactly
weird that one-time payments include it as standard but subscriptions don't but no biggie