#ben_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/1222690850044117064
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Not sure what you mean by "automatic Stripe Billing Form", can you provide more details?
sorry... Billing Address form associated with Card entry
Ah, you can use the Address Element: https://docs.stripe.com/elements/address-element
I do not really see where in the docs it shows how to integrate it with the quickstart example?
Should I just include in the form?:
return (
<form id="payment-form" onSubmit={handleSubmit}>
<AddressElement id="address-element" options={{}} />
<PaymentElement id="payment-element" options={paymentElementOptions} />
<button disabled={isLoading || !stripe || !elements} id="submit">
<span id="button-text">
{isLoading ? <div className="spinner" id="spinner"></div> : "Payz now"}
</span>
</button>
{/* Show any error or success messages */}
{message && <div id="payment-message">{message}</div>}
</form>
);
More like this?:
<form id="payment-form" onSubmit={handleSubmit}>
<AddressElement id="address-element" options={paymentElementOptions} />
<PaymentElement id="payment-element" />
<button disabled={isLoading || !stripe || !elements} id="submit">
<span id="button-text">
{isLoading ? <div className="spinner" id="spinner"></div> : "Pay now"}
</span>
</button>
{/* Show any error or success messages */}
{message && <div id="payment-message">{message}</div>}
</form>
Have a look here for a guide for implementing it: https://docs.stripe.com/elements/address-element/collect-addresses?platform=web
I have read that many times and does not really help me much. Thanks anyway.
What specific part are you stuck on?