#tounka

1 messages · Page 1 of 1 (latest)

harsh sealBOT
compact rover
#

i want to show it on the checkout session completed page

thick vigil
#

Hi, can you confirm what you mean with 'order number'?

compact rover
#

a number that can allow us correlate their transaction in the event they email us they should be able to provide some sort of confirmation number

thick vigil
compact rover
#

so i need to generate my own confirmation numbers?

#

in the stripe dashboard, how will i correlate the confirmation number with their payment

thick vigil
#

Let me test one thing real quick on my end

compact rover
#

no problem thanks

thick vigil
compact rover
#

why would i want to update the payment Intent's metadata?

#

will i be able to search up PaymentIntentID in the dashboard?

thick vigil
#

Yeap

#

You said you wanted to show the confirmation number in the Dashboard and this the way to achieve what you're looking for

compact rover
#

so the PaymentIntentID is not on the checkout.session.completed event?

#

i want to show the confirmation number on the success page after they checkout

thick vigil
#

The Payment Intent Id is on the checkout.session.completed event.

compact rover
#

its showing null for me

thick vigil
#

can you share the event id with me?

compact rover
#

this is in test mode btw

thick vigil
#

yeap!

compact rover
#

and actually its not an event. after the checkout is completed, i make an api call to stripe to get the checkout out session

thick vigil
compact rover
#

do you mean update the payment intent id or actually add my own key value pair the payment itent metadata?

thick vigil
compact rover
#

so when i search in the dashboard, it can also find data based on metadata?

thick vigil
#

Yes!

compact rover
#

ahhh makes sense

#

would it be a bad idea to use invoice_prefix as the confirmation number?

thick vigil
#

I would not do that.

compact rover
#

why not

harsh sealBOT
thick vigil
#

If you're trying to show it in the success page after your session completion, it would add delays.

compact rover
#

locally it seems to be working quickly

#

on each invoice.paid event, will the invoice_prefix be the same?

#

on the success page, i make a request to my back-end to get the checkout session object, which in turn gets it from stripe. the doc recommends that

thick vigil
compact rover
#

once what is set?

thick vigil
compact rover
#

i thought its set automatically after the customer pays

#

but based on the flow i mentioned, will using invoiceprefix as the confirmation number cause any issues

thick vigil
#

I was under the the impression you wanted to control that number for some reason so you'd set that on the customer creation. However, if not, and if you're going to be making an explicit request to attaint his information, sure. However, I'd test this in your test environment as well just to confirm it's exactly what you're looking for.

compact rover
#

got it. and lastly on each invoice.paid event, will the invoice_prefix be the same?

thick vigil
compact rover
#

so in test mode after i checkout, i retrieve the checkout session object and the invoice prefix is on the event automatically

thick vigil
#

I tested this via the API directly..

compact rover
#

and you're not seeing an invoice_prefix?

thick vigil
#

So on this question.. 'lastly on each invoice.paid event, will the invoice_prefix be the same?'What do you mean exactly?

#

I'm testing it with checkout now

compact rover
#

will the invoice_prefix ever change after its been created

thick vigil
#

No it would not.

#

I tested it with Checkout and I do not have it. Can you share the event id where you're seeing this?

compact rover
#

i don't have access it unfortunately. i closed down everything. but i will test this out again and reach back out if i have any issues