#chambaz-checkout

1 messages · Page 1 of 1 (latest)

runic basalt
#

hello, can you share the CheckoutSession ID for a completed one where you have shipping address on it?

long kelp
#

Hey sure thing, 1 moment

#

Would the webhook ID be helpful>

#

This is what we're doing to grab the shipping address in the webhook callback, I'd have to place a test order to get a real ID for you

runic basalt
#

sure yes webhook event ID would be great

long kelp
#

the session var there is a little misleading in its name actually

#

its. const session = event.data.object

#

seti_1JYBaCCzpuIfKpkBTNbmWma1

#

evt_1JYBbBCzpuIfKpkBM3lgcrMG

#

Second is the event ID, first is the setup intent ID

#

To confirm, this is using future payments, and looking to confirm I can retrieve the shipping info again when it comes time to programmatically charge those customers who stored details for future payment

#

Thanks for the help!

#

I assume it'll be retrievable with the setup intent ID but would like to confirm, also I had hoped there would be a way to see it in the dashboard.

#

i have to jump on a call now but will be back asap. Thanks!

runic basalt
#

can you link me the checkout.session.completed webhook event? that would be easiest if possible (while I try to look it up on my end)

#

so the shipping hash does live on the CheckoutSession object

so it depends on which page on the Dashboard you are looking at. Are you looking at the Customer details page? something else/

long kelp
#

Hey sorry

#

I'm back now, hope I didnt lose you!

#

Ahhh

#

I see the shipping details in the checkout completed wenhook

#

*webhook

#

Not in the regular customer view though which is where our client is looking. Thats fine though.

#

My biggest concern was making sure I can retrieve that data when we come to charge customers and ship their orders

#

Thank you!

#

Well actually just to confirm, that is correct right? That info isn;'t only available in the checkout session completed webhook, I can retrieve that from the customer object when we come to charge / ship?

runic basalt
#

I see the shipping details in the checkout completed wenhook
you need to copy (via an API requests) the shipping hash from the CheckoutSession, to the Customer. It doesn't happen by default

#

so no it doesn't by default copy over to the Customer

long kelp
#

Can I do that retroactively though?

runic basalt
#

yes

long kelp
#

ok phew

runic basalt
#

you can go through older CheckoutSessions, retrieve them and update the Customer object with the shipping details

long kelp
#

got it ok, so i'll write a script to loop through those and append shipping details.

#

At that point charging and retrieving shipping info will be simple

#

Thank you!!