#shakil_paymentintent-receipt
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1254863764545867796
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
@grave zealot PaymentIntents don't always have an Invoice associated with it. So if you see invoice: null it means you created a PaymentIntent yourself and no Invoice was involved
I have paymentIntent Id
How can I create a payment intent with invoice
So it can show
That's impossible. You can't create an Invoice after the fact. If you need an Invoice then you have to use our Invoicing product upfront. See https://docs.stripe.com/invoicing/integration
Understand , So how can I implement a paid payment intent invoice download feature ?
So user can download their already paid receipt / invoice
yes
It can be receipt also
receipt and Invoice are completely different concepts though
On stripe there is no api for receipt download
If you only want a receipt then you can use https://docs.stripe.com/api/charges/object#charge_object-receipt_url
this is a Charge id, you can use the Retrieve Charge API and then look at receipt_url. Or use Expand: https://stripe.com/docs/expand https://www.youtube.com/watch?v=m8Vj_CEWyQc
shakil_paymentintent-receipt
sure thing!
You can't sorry. You have a URL and you can send the end customer to that URL and there they can download. It's impossible to download the receipt PDF sorry
from charge api that is showing this
Cannot we get like this?
No, you get a URL and you send that end customer to that URL
How can user get invoice for one-time payment ?
Hi ๐
I'm stepping in as my colleague needs to go
How can user get invoice for one-time payment ?
Are you creating Invoices beforehand? Invoices are fundamentally different from receipts. They are documents with legal requirements.
We allow you to use Invoices for one-off payments if you create them before the payment: https://docs.stripe.com/invoicing.
Or, you can use Checkout and specify that you want to create invoices for one-off payments: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation
I am getting payment with card element and using paymentIntent.create api , It is not possible to move on checkout session api , How can I get invoices on that case ?
So in my site I am getting one time amount with payment intent create api , and collecting payment with card element , and on the paymentIntent object invoice is null
Without moving to checkout session api , is there any solution?
If you are just creating a Payment Intent and not creating an Invoice beforehand, you cannot generate an Invoice for those payments after they have been completed. You can only provide receipts.
Understand , So how can I proceed to get invoices without checkout session api?
And there is also not relation between invoice create api and payment intent api that is a problem , but on the other hand we can create invoice on chekout session api for payment intent
So without moving to checkout session api , is there any way to get invoices for one time amount ?
Sorry the way you are wording this is very confusing.
So how can I proceed to get invoices without checkout session api?
You can create Invoices for one-off payments. These will generate Payment Itents you can use the Payment Element to confirm. Please review the docs on Invoicing I provided.
That's what I want , thanks a lot