#kenny_code

1 messages ยท Page 1 of 1 (latest)

gloomy pivotBOT
#

๐Ÿ‘‹ 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.

shut badge
#

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" }} />

strong cape
#

๐Ÿ‘‹
When you confirm the PaymentIntent in your frontend, make sure to pass the email within the billing details

shut badge
#

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?

strong cape
shut badge
#

yeah I got that, I mean the address and stuff for tax purposes

strong cape
#

Because Stripe Elements will collect it only if required by a selected payment method

strong cape
shut badge
#

is there also a way to make it so that it's set as the default payment method automatically when added?

strong cape
#

Nope you need to make an API call and set it as default where you want

shut badge
#

okay thanks for your helop

strong cape
#

Welcome!