#Benjamin (Benio)

1 messages ยท Page 1 of 1 (latest)

queen tideBOT
hardy elm
#

Hey, sorry for the delay

#

Can you share a cs_xxx ID example with me

nova axle
#

No worries.

#

Here -> cs_test_b1xJdoRe7uqTffJJwgho5dfXDAqbrWOxdzvym2uCFbbgaWQi1a4obntyKi

In stripe test mode

#

Another way is to use event checkout.session.completed and retrieve address in this payload.
But if I can get it in the invoice.finalized, it will be better for me

hardy elm
#

Yeah, as you've discovered that isn't possible

nova axle
#

Ok thanks ๐Ÿ™ I will see it
Have a good day!

hardy elm
#

Or the Checkout Session

#

If there's no payment, then the details won't be available via Invoice events (unless you lookup the Customer)

nova axle
#

But there is no billing details on the customer

#

Is there an option to save the billing details when the customer is created by checkout way?

hardy elm
#

It should save them if it creates a Customer, let me see the session you shared

nova axle
#

This customer used 2 sessions already. I can create a new one with the same problem if it needs

hardy elm
#

So when your customer inputs their address on the page, it'll be saved to the existing object

#

You can then look that up via events/API as you need

nova axle
#

Oh yeah! I didn't see it. We talk about billing details and not shiping address?

hardy elm
#

Yes, customer_update.address is for billing address. There's a customer_update.shipping for shipping details

nova axle
#

Ok thank you very much. It will be perfect to retrieve customer at this moment!

hardy elm
#

๐Ÿ‘Œ