#ivko_code
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/1285909043285725194
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Do we have to use Stripe javascript API
What do you mean by this?
do i have to call some Stripe API calls to update customer or can it be handled by Stripe JS?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let's say in some form submit callback
after Address Element update or so
Yes, you will need to make a backend call with your secret key to update the Customer object.
i'll also have to fetch customer's current billing address and prefill it as default address in the Address Element?
Yes, you will need to do it via backend call too.
You can listen to events on the Address Element to get the details from it: https://docs.stripe.com/elements/address-element/collect-addresses
i have one more question though - is there a VAT number input for Address Element or some special Stripe JS Element or do i have to implement myself somehow?
No, you'll have to implement it on your own.