#Benjamin (Benio)
1 messages ยท Page 1 of 1 (latest)
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
Yeah, as you've discovered that isn't possible
Ok thanks ๐ I will see it
Have a good day!
The billing details are generally only available on payment instruments (cards) or the Customer object (which Checkout will save): https://stripe.com/docs/api/customers/object#customer_object-address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Or the Checkout Session
If there's no payment, then the details won't be available via Invoice events (unless you lookup the Customer)
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?
It should save them if it creates a Customer, let me see the session you shared
Ok, yep. You passed an existing cus_xxx via customer param: https://dashboard.stripe.com/test/logs/req_nDFldkGpPR9N4z
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This customer used 2 sessions already. I can create a new one with the same problem if it needs
You need to explicitly tell Checkout to save the details input in the payment page on the Customer: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_update-address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Oh yeah! I didn't see it. We talk about billing details and not shiping address?
Yes, customer_update.address is for billing address. There's a customer_update.shipping for shipping details
Ok thank you very much. It will be perfect to retrieve customer at this moment!
๐