#kenny_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/1362403400087502878
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kenny_unexpected, 2 hours ago, 27 messages
- kenny_code, 1 day ago, 71 messages
- kenny_code, 2 days ago, 74 messages
I'm using this for my add payment dialog:
<Elements
stripe={stripePromise}
options={{
clientSecret,
customerSessionClientSecret,
fonts: [
{ cssSrc: "https://fonts.googleapis.com/css?family=Inter" },
],
appearance: {
theme: "night",
variables: {
fontFamily: "Inter",
colorPrimary: "white",
colorBackground: "#09090B",
colorText: "white",
},
},
}}
>
<PaymentForm
isSubmitting={isSubmitting}
setIsSubmitting={setIsSubmitting}
setErrorMessage={setErrorMessage}
setIsOpen={setIsOpen}
/>
</Elements>
the PaymentForm is a wrapper for <PaymentElement options={{ layout: "tabs" }} />
๐
When you confirm the PaymentIntent in your frontend, make sure to pass the email within the billing details
okay so with the billing details i need to collect those outside of the payment element?
or is there a stripe element that can do that for me?
If you want always to get the email, then you need to collect it by your own and hide it from PaymentElement
yeah I got that, I mean the address and stuff for tax purposes
Because Stripe Elements will collect it only if required by a selected payment method
If you need them, yeah collect them by your own fomrs
is there also a way to make it so that it's set as the default payment method automatically when added?
Nope you need to make an API call and set it as default where you want
okay thanks for your helop
Welcome!