#tom_api

1 messages ¡ Page 1 of 1 (latest)

fiery sandBOT
#

👋 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/1463496674465808478

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

dawn ermine
#

Am trying to have to avoid creating a form for address/tax and validating it ourselves, would rather use stripe elements to do this if possible?

desert crystal
#

hi there!

dawn ermine
#

Howdy!

desert crystal
#

then make an API call to update the Customer object with the new address.

dawn ermine
#

This is the code I'm trying:

#

<script>
const stripe = Stripe("<%=C3.Code.Settings.Payments.Stripe.PublishableKey%>");
const elements = stripe.elements({
appearance: {

        }
    });
    const addressElement = elements.create("address", {
        mode: "billing",
    });
    addressElement.mount("#address-element");
</script>
#

But it doesn't render anything

#

No errors in the logs

desert crystal
#

do you have a link where I can reproduce the issue?

dawn ermine
#

Ah sorry found the issue, is a CORP header blocking it

#

All good now thank you!