#ermander - client secret
1 messages · Page 1 of 1 (latest)
Can you share your code for creating the Payment Element? Error says what the issue is
You need to add the secret. You can see an example in this step: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#add-the-payment-element-to-your-payment-page
Where do you create the elements group in your code?
That's where it's not being passed in
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
What do you mean by that. Can you share a screenshot and the browser console log?
Ok. Can you share the browser console log and a screenshot of what's going on in the browser
Solved
What did you do to fix?