#ermander - client secret

1 messages · Page 1 of 1 (latest)

gilded forge
#

Can you share your code for creating the Payment Element? Error says what the issue is

kindred plaza
#

I think it's correct the clientSecret

#

Look

gilded forge
#

Where do you create the elements group in your code?

#

That's where it's not being passed in

kindred plaza
gilded forge
#

I mean this: ```function App() {
const options = {
// passing the client secret obtained in step 2
clientSecret: '{{CLIENT_SECRET}}',
// Fully customizable with appearance API.
appearance: {/.../},
};

return (
<Elements stripe={stripePromise} options={options}>
<CheckoutForm />
</Elements>
);
};

#

See how client secret is passed

kindred plaza
#

I've solved it

#

Now the problem is that i don't see the iframe

gilded forge
#

What do you mean by that. Can you share a screenshot and the browser console log?

kindred plaza
#

This is my form container

gilded forge
#

Ok. Can you share the browser console log and a screenshot of what's going on in the browser

kindred plaza
#

Solved

ocean quail
#

What did you do to fix?