#roshe10_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1460933053596565586
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
can you share the code that is throwing that error? and also print the full value of the client secret you are using?
cs_test_a1Ox5P1SJTp2AacLqlNrsGMPQWK3rrVO1beC1EEHujj8lpSoNZGn3cUCW1_secret_fidnandhYHdWcXxpYCc%2FJ2FgY2RwaXEnKSdwbEhqYWAnPydmcHZxamgneCUl
so you are trying to use Checkout Session with the Payment Element?
yeah, I 'm trying to have custom UI with checkout session API
your code has mistakes, for example why are you setting an amount and currency? it's not needed since you set a client secret
I recommend following this doc: https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout&client=react#initialize-checkout