#hazem-elkhalil_code

1 messages ยท Page 1 of 1 (latest)

lapis graniteBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

robust kernelBOT
tacit birch
#

hi there!

pseudo sphinx
#

Hey soma ๐Ÿ™‚

#

this is a visual representation of what i want gone

tacit birch
#

can you share the PaymentIntent ID (pi_xxx) with this issue?

pseudo sphinx
#

yeah let me find it ๐Ÿ™‚

#

"pi_3P5oNgKf7YEB3XTz1uRRqMXG_secret_oMjsFY6xELRKrk1nktldCH2zJ"

#

"pi_3P5oNgKf7YEB3XTz1uRRqMXG"

#

one of thease i guess

tacit birch
#

thanks, that PaymentIntent should only display "swich" as a payment method and nothing else. can you clarify how you use the Payment Element exactly? maybe can you share your code?

pseudo sphinx
#

yeah so i have this compoennt

    <div style={{ paddingTop: "10vh" }} className="">
      <div className="xl:w-1/2">
        {clientSecret === "" ? (
          <p>Loading</p>
        ) : (
          <StripePaymentComponent clientsecret={clientSecret} />
        )}
      </div>
    </div>
#
This is stripepaymentcomponent

    <Elements stripe={stripePromise} options={options}>
      <CheckoutForm />
    </Elements>```
#
this is checkoutform

      <form onSubmit={handleSubmit} className="">
        <PaymentElement
          options={{
            layout: "tabs",
          }}
        />
        <button disabled={!stripe}>Submit</button>
      </form>
pseudo sphinx
#

Also tried removing the options:layout:tabs from the paymentelement

tacit birch
#

and the options contain the client secret you shared?

pseudo sphinx
#

still same result

#

yeah

#

WAIIIIIIIIIT

#

i f*d up i am so srry

#

i just saw my misstake

#

haha

#

i forgot to set the client secret

#

sorry for wasting your time