#DevOPS-Checkout
1 messages · Page 1 of 1 (latest)
hi there! this is expected behaviour - the PaymentIntent only shows for mode=payment
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
can you share more about why you need the PaymentIntent object? i.e. what specific information do you need from the PaymentIntent?
To get user information and invoice details
if you need the invoice details, you can listen for the invoice.paid event also - does that work for you?
no, actually while session created I was storing some information in DB so I need to add reference to identify/update while receiving webhook event
can you share the fields / information you need and how your flow currently works?
Yes,
On Payment success I'm storing subscription detail and user information like membership plane Id, name etc and on payment_intent.succeeded I'm looking to add/updating invoice URL to that record
alright, so on checkout.session.completed - you would have a subscription id which you save to your DB : https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-subscription -> When you receive an invoice.paid event, it would have the corresponding subscription id : https://stripe.com/docs/api/invoices/object#invoice_object-subscription
so you would be able to match up the two objects when you receive the corresponding events
Hello @zinc sinew
Is there any way to get paid invoice receipt directly?
right now I get unpaid invoice in invoice.paid event
could you please share the event id evt_xxx you're referring to?
evt_3LDltAJckvEPtDNf0crEJT22
"evt_1LDltFJckvEPtDNf2Be8NW2U"
while I'm download invoice it's showing Payment due
you're looking at the invoice not the receipt
in test mode the receipt is not sent to the customer email
the only way of sending it is to manually click on Send Receipt in the invoice page on the dashboard or visit the hosted_invoice_url and download it
yes exactly
Okay
👍
let me know if you need any more help