#DevOPS-Checkout

1 messages · Page 1 of 1 (latest)

zinc sinew
#

can you share more about why you need the PaymentIntent object? i.e. what specific information do you need from the PaymentIntent?

cosmic dawn
#

To get user information and invoice details

zinc sinew
#

if you need the invoice details, you can listen for the invoice.paid event also - does that work for you?

cosmic dawn
#

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

zinc sinew
#

can you share the fields / information you need and how your flow currently works?

cosmic dawn
#

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

zinc sinew
#

so you would be able to match up the two objects when you receive the corresponding events

cosmic dawn
#

Okay, Let me try

#

Thank you for your help👍

cosmic dawn
#

Hello @zinc sinew
Is there any way to get paid invoice receipt directly?

#

right now I get unpaid invoice in invoice.paid event

craggy creek
#

could you please share the event id evt_xxx you're referring to?

cosmic dawn
#

evt_3LDltAJckvEPtDNf0crEJT22

craggy creek
#

this is the payment_intent.suceeded event

#

not the invoice.paid

cosmic dawn
#

"evt_1LDltFJckvEPtDNf2Be8NW2U"

craggy creek
#

this invoice was paid

#

what seems to be the issue?

cosmic dawn
#

while I'm download invoice it's showing Payment due

craggy creek
#

you're looking at the invoice not the receipt

cosmic dawn
#

yes, I want to download receipt

#

without using hosted_invoice_url

craggy creek
#

in test mode the receipt is not sent to the customer email

cosmic dawn
craggy creek
#

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

craggy creek
cosmic dawn
#

Okay

craggy creek
cosmic dawn
#

👍

craggy creek
#

let me know if you need any more help