#juzarantri_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1248612267042275389
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hey @molten bloom thanks for reverting
actually this is the code that is giving error
return (
<form onSubmit={handleSubmit}>
<PaymentElement />
<button type="submit" disabled={!stripe || !elements}>
Pay
</button>
{/* Show error message to your customers */}
{errorMessage && <div>{errorMessage}</div>}
</form>
);
can you open the error just above ("unhandeled payment element loaderror") and share the screenshot?
Here
well that error is pretty clear
Actually I am new to it so I am unaware of it
as it was working before I don't know whats wrong now
the error is telling you that there are no available payment method to display, so that's why the Element is failing to load.
are you using a PaymentIntent to load the Payment Element, or do you use the deferred flow?
No I will create payment intent once the user submits the card details
got it. can you share the code setting the Element options (amount, currency, etc.)
also can you share your account ID (acct_xxx)? it's at the top of this page: https://dashboard.stripe.com/settings/account
the amount is set to 12?
yes
if so, that's expected to not work. Stripe requires a minimum of $0.50, which is amount:50
oh so 100 = 1$?
Oh it worked
So i need to do 12 * 100 right?
if it 12 $?
it worked currently
yes $12 is 10*100 = 1200