#thekents_api

1 messages ยท Page 1 of 1 (latest)

urban pikeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1227155475372572702

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tranquil torrentBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

upbeat girder
subtle moss
#

I dont think so.. I am coding a confirmation screen for a ecom store, I am already fetching a checkoutsession using session_id

#

I dont see a way to get a charge aswell, atleast without expanding anything

upbeat girder
#

Then what kind of receipt number do you refer to?

subtle moss
#

The second one found in Receipt PDF

#

First one is invoice number, second is receipt number

#

Invoice number i can get by expanding invoice

upbeat girder
#

What's the invoice ID?

subtle moss
#

in_1P31HiC8VwQdnO07ZIrlKVhI

#

That is an invoice ID for one of the test checkouts

#

Okay it seems that for test checkoutsessions with paid invoice enabled, it doesn't create receipt

#

so the receipt number would be null

#

But for live checkoutsessions, there is an receipt_number field under invoice object

#

I expect that to be populated then?

#

How come receipts arent created in test mode?

upbeat girder
#

Is it the same invoice ID?

subtle moss
#

No, it is the test one

#

But shouldnt it work the same?

#

in_1P3P2eC8VwQdnO07sjnLH7mR

#

This is the one is live invoice

#

The one i showed you a ss from

upbeat girder
#

Is this what you are trying to get?

subtle moss
#

Yes, and i can get that by retrieving session and expanding invoice, but if i try the same in test mode, (in_1P31HiC8VwQdnO07ZIrlKVhI) the receipt number is null

#

Is it by design that test mode doesn't generate receipts or?

upbeat girder
subtle moss
#

Oh okay, so by sending the receipt it should also generate a receipt_number

upbeat girder
#

Yes you are right

subtle moss
#

Yeah okay, thank you.. Hope you have a nice day ๐Ÿ™‚

upbeat girder
#

Happy to help!

subtle moss
#

Also, is it possible for user to edit their email address after ordering?

#

Like something like this?

upbeat girder
subtle moss
#

Yeah or sessions customer_details.email

urban pikeBOT
upbeat girder
#

As explained in the API ref doc, once the invoice is finalized, this field can't be changed anymore.