#lamikam

1 messages ยท Page 1 of 1 (latest)

storm geyserBOT
olive sandal
#

Hi ๐Ÿ‘‹

How was the elements instantiated?

waxen lake
#

elements = stripe.elements({
clientSecret: setupIntent,
});

var paymentElement = elements.create("payment", { style: style });
paymentElement.mount("#payment-element");

#

the payment element ui does get populated

olive sandal
#

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 {}

#

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

waxen lake
#

ah OK thanks! Will try that. Thanks again

#

that fixed it. Thanks!

olive sandal
#

๐ŸŽ‰

#

Great I'm glad it worked. ๐Ÿ™‚

waxen lake
#

FYI, you all have the best developer support.