#fatcat-elements-loaderror
1 messages ยท Page 1 of 1 (latest)
@glossy plinth the first step is to read the errors and understand what the issue is. There has to be logs or similar. Sorry right now there's nothing for me to even guess a wild idea
fatcat-elements-loaderror
I figured it out, I forgot to add the index file remix needs for stripe
while I have you, is there any way to pre-fill the zip code and country if I already know it?
country is 2 letter or 3 letter code?
I tried putting it in here but it doesn't work
Error: Received unknown parameter: defaultValues
yeah that's a completely different API
๐
my link is about PaymentElement that you initialize client-side with Elements. Your picture is about server-side code
yeah because I'm using remix
I followed this tutorial if it helps https://www.youtube.com/watch?v=5aI0hJX_XXM
The picture you showed earlier is client-side where your code will, in Javascript, load Stripe.js, initialize Elements (our UI library) and then create a PaymentElement.
The second picture with code is server-side in Node.js where you create a PaymentIntent.
The defaultValues option I shared earlier goes client-side
try it I'd say and see what happens
Didn't work but I found the solution
๐
ah yeah makes sense