#nobody_api
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/1369179484963471382
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Sorry could you provide more details on what is the issue that you are facing? Which Element are you using?
Hi, sorry, stripe payment element
On localhost (uses dev environment) the customer session loads correctly
On the server, it gives this error
I honestly dont know what might cause this, cuz im checking and it's the same customer, generating sessions in the same way. Did the normal sanity check stuff like log out / refresh
If there isnt anything to go off its fine 😅 just wondering if you have any ideas
Is the client secret being correctly passed?
Ugh i think so... i realize there's nothing to go off here
I'll ask a different question
You know how a few countries require postal code for taxes? Well, india is one of those (it says so in the docs), but the payment element doesn't reveal the zip code field for india. I think this is a bug, because it causes tax calculations to fail.
Looking into your latest query.
thank you
Could you also provide me with the link to the document you took a screenshot of?
The document mentions that If you don’t use Payment Links or Checkout, you’re responsible for the collection of customer addresses.. You had mentioned you were using Payment Element.
There are a few options. You can either use our hosted [0] or embedded checkout [1]. Alternatively you can use embedded components that utilises both Payment Element and Chekcout Sessions.
[0] https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted
[1] https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form
[2] https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-components
But i still think this is a bug... i remember reading the payment element is supposed to collect the minimum viable information to complete taxes. Not including address (-> address element).