#aadam0651
1 messages · Page 1 of 1 (latest)
hello! can you share what guide you're following (if any)? If you're attempting to use the embedded Checkout page to accept payment you'll want to follow this guide : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=embedded-checkout
To mount the embedded Checkout element, you'll want to look at this section : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=embedded-checkout&client=html#mount-checkout
yes i was following the embedded checkout guide, i retrive the clientSecret and can print it out, it appers to have the correct structure as mentiond... You specified: cs_test_gibberish_secret_gibberish
Im running in test mode of stripe, using the private key in backend, and public key temporarly directly in front end, i call backend to retrive the secret key in order to render the elements on the page
you shouldn't be trying to create a payment element. Like the guide mentions, you'd want to
clientSecret,
});
// Mount Checkout
checkout.mount('#checkout');
}```
Is the element not the actual UI component of it?
A payment element is an entirely different component. It's not Checkout
Okey i will have a look at the doc again,
So i only need the key for the payment element? correct?
you should not be using the payment element if you're using Checkout. I recommend going through the guide and following it
Yikes, i checkt the docs again and realised that i was on the wrong page.... my bad, but anyway thansk for assistans 🙂