#.abishek
1 messages · Page 1 of 1 (latest)
when the checkout session has a subscription item, then the checkout_session.invoice is set
Yup! THat's expected. Checkout only uses Invoices with Subscriptions. Otherwise it just uses Payment Intents
ok, so I have to handle it differently when a checkout involves subscription and it doesn't involve subscription?
so use checkout_session.invoice for a session that has a subscription product and checkout_sesion.payment_intent for a session with without subscription product?
Yup!