#hazem-elkhalil_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/1229403070178398228
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
can you share the PaymentIntent ID (pi_xxx) with this issue?
yeah let me find it ๐
"pi_3P5oNgKf7YEB3XTz1uRRqMXG_secret_oMjsFY6xELRKrk1nktldCH2zJ"
"pi_3P5oNgKf7YEB3XTz1uRRqMXG"
one of thease i guess
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?
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>
yeah i read the docs but still getting the same screen
Also tried removing the options:layout:tabs from the paymentelement
and the options contain the client secret you shared?