#luxterful_docs

1 messages ยท Page 1 of 1 (latest)

alpine ridgeBOT
#

๐Ÿ‘‹ 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/1372524513694060574

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

jaunty trench
desert ether
#

req_AZryqdSJOSVTNj

jaunty trench
#

Example above uses the Address Element, prior to payment

desert ether
#

You can get the postalCode from the Card Element
Ok i will try that

jaunty trench
#

It won't work though as I said because you'll only be mounting the Card Element after the subscription is created โ€“ which fails without the ZIP

desert ether
#

we create the subscription after the payment with the deferred flow

#

and from the change event i dont get the postalCode btw

alpine ridgeBOT
meager bolt
#

hi! I'm taking over this thread.

jaunty trench
desert ether
#

Ahhh so if i use the card element itself this info will be exposed?

#

Otherwise: is the postalcode field of the payment element stored in stripe? can i access it somehow?

alpine ridgeBOT
meager bolt
desert ether
#

Sure, it will be on the PaymentMethod object itself
can i somehow tell stripe to use this information for the tax calculation?

meager bolt
#

no, because the postal code of the payment method might not be the postal code where the user lives.
if you want to use that information for tax calculation anyways, you'll need to make an extra API call to update the customer object with that address.

desert ether
#

ahh thanks. i will try that

desert ether
#

another question: if a customer pays with paypal, there is a chance that the postalcode will be provided by paypal. Its not ensured that it will be sent, but sometimes it will, right?

meager bolt
#

not very familiar with Paypal. where did you see that information? in the doc? can you share a link to it?

desert ether
#

some weeks ago i asked this question here and i think the answer was that sometimes it is provided by paypal

meager bolt