#b33fb0n3_docs
1 messages · Page 1 of 1 (latest)
👋 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/1235842382243561534
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
{
name,
address: {
line1,
line2,
city,
state,
postal_code,
country,
},
},
when you log the change event details what are the keys available? https://docs.stripe.com/elements/address-element/collect-addresses?platform=web#web-retrieve-address
these:
{
elementType: 'address',
elementMode: 'shipping',
empty: false,
complete: false,
isNewAddress: false,
value: {
name: "",
firstName?: "",
lastName?: "",
address: {
line1: "",
line2: null,
city: "",
state: "",
postal_code: "",
country: "",
},
phone?: "",
},
}
so from that event, you can see the keys you should be retrieving right?
yea?
so assuming that the customer has keyed in their details, you can retrieve those values from the change event
I know
i'm not sure I understand what's the issue since you can retrieve those values from the change event?
my issue is, where these values are saved within stripe when using the address element to proceed a checkout process
Are you using the Address Element with the Payment Element?
and only to collect the Billing Address?
If that's the case, then you can find the billing address on the PaymentMethod. If you have an example PaymentIntent id, i can point you to it
right now I don't have id's. Yes, I am using it with the payment element. I collect the shipping address with the element
okay, then I recommend making a payment so that you can see where the addresses are saved to
I am currently only planning the checkout process. To be able to plan correctly, I need to know where the name is saved. I will only go into implementation once the planning is complete.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
To be clear though, If the Address Element is integrated alongside the Payment Element, and the customer indicates that billing address is different from the shipping address - the only details collected for the billing address are still only the country and conditionally the postal code.
If you want to collect both a full shipping address and billing address with the Address Element where those addresses differ, one suggestion that I can make is to use/mount two separate Address elements and conditionally render one depending on the ‘billing details same as shipping’ checkbox to collect the full billing address details to pass into confirmPayment.
I don't want to collect the billing address. I just want to collect the shipping address and after that the payment details via the Payment Element and then the user can checkout. If the billing address is needed to proceed the user will need to enter it via the payment element.
This billing address is not from interest for me. I am only interested how the *shipping * address with name is saved.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.