#lamikam
1 messages ยท Page 1 of 1 (latest)
Hi ๐
How was the elements instantiated?
elements = stripe.elements({
clientSecret: setupIntent,
});
var paymentElement = elements.create("payment", { style: style });
paymentElement.mount("#payment-element");
the payment element ui does get populated
Hmmm...
I'm testing on my end
Alright I'm seeing the same error
Lemme see if I can fix it now ๐
Alright, got it
First the elements needs to be wrapped in {}
If you look at the code snippet here: https://stripe.com/docs/js/setup_intents/confirm_setup
You'll see the function is passed an Object with the first property being the elements variable and the second being confirmParams
For your snippet try moving the curly brace you have just after the elements parameter to just before it
FYI, you all have the best developer support.