#shakil_paymentintent-receipt

1 messages ยท Page 1 of 1 (latest)

jade flickerBOT
#

๐Ÿ‘‹ 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
indigo plover
#

@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

grave zealot
#

I have paymentIntent Id

#

How can I create a payment intent with invoice

#

So it can show

indigo plover
grave zealot
#

Understand , So how can I implement a paid payment intent invoice download feature ?

#

So user can download their already paid receipt / invoice

indigo plover
#

yes

grave zealot
#

It can be receipt also

indigo plover
#

receipt and Invoice are completely different concepts though

grave zealot
#

On stripe there is no api for receipt download

indigo plover
grave zealot
#

I can get from chargeId

#

Can I retrive invoice for this?

#

sorry receipt

indigo plover
#

shakil_paymentintent-receipt

grave zealot
#

Understand

#

Thanks a lot

indigo plover
#

sure thing!

grave zealot
#

Hi

#

How can I download recipt

#

like this

indigo plover
#

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

grave zealot
#

from charge api that is showing this

grave zealot
indigo plover
#

No, you get a URL and you send that end customer to that URL

jade flickerBOT
grave zealot
#

How can user get invoice for one-time payment ?

delicate skiff
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go

grave zealot
#

How can user get invoice for one-time payment ?

delicate skiff
grave zealot
#

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?

delicate skiff
#

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.

grave zealot
#

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 ?

delicate skiff
#

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.

grave zealot
#

That's what I want , thanks a lot