#Gautam
1 messages ยท Page 1 of 1 (latest)
Hello, can you tell me about how you are making these payments API-wise?
With a Subscription, Invoice object, creating a PaymentIntent directly?
yes
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1N5pRrSJFAxFwYzl/test_YWNjdF8xTjVwUnJTSkZBeEZ3WXpsLF9Od1JuMnJhcXVIQjRVUEE5V25OZnVSODlrRmZNZldHLDc1MzAzMzUw02002ky6zxkm?s=ap",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1N5pRrSJFAxFwYzl/test_YWNjdF8xTjVwUnJTSkZBeEZ3WXpsLF9Od1JuMnJhcXVIQjRVUEE5V25OZnVSODlrRmZNZldHLDc1MzAzMzUw02002ky6zxkm/pdf?s=ap",
Then invoice.paid will be the best event to listen to
That is the event that is triggered when an invoice is paid or marked as paid
but in that also I am not getting the payment receipt
Where are you looking for the receipt that you are not seeing it?
I am cheking inside the invoice.payment_succeeded and invoice.paid event
see in this url the payment_receipt is there but the I am not getting the receipt directly, so that I can save that receipt in my database.
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1N5pRrSJFAxFwYzl/test_YWNjdF8xTjVwUnJTSkZBeEZ3WXpsLF9Od1JuMnJhcXVIQjRVUEE5V25OZnVSODlrRmZNZldHLDc1MzAzMzUw02002ky6zxkm?s=ap",
hello there?
Hello ๐
The server is running a bit busy, give us a moment to catch up please
okay
can you share an example event where you're seeing this behaviour?
sure
the above one object I am getting after the Invoice.payment.succeded evnt and the below on I am getting in the invoice.paid event but in none of the event I am getting the invoice receipt directly.
Invoice receipt is not really a thing. Invoice in itself is a proof of payment.
If you're looking for a payment receipt then it lives on the charge object
please tell me the exact event name
charge.succeeded event should have the receipt_url
https://stripe.com/docs/api/events/types#event_types-charge.succeeded