#conor-embedded-checkout-java
1 messages · Page 1 of 1 (latest)
ID to the jsp. However when trying to initialise the checkout I am given a blank screen and get an error saying session id is not a valid parameter.
Quoting for context
- User onboards with stripe connect
- What kind of checkout session are you creating? Full redirect or Embedded?
Trying to do embedded
- What error message do you receive (Exact text)
But the session is not showing up in my API logs even though I am printing it on both the JSP (in console) and on my own server logs
2 seconds
I will show you
Full error from console: v3/:1 Uncaught (in promise) IntegrationError: Invalid initEmbeddedCheckout(options) parameter: sessionId is not an accepted parameter. at v3/:1:187896 at ne (v3/:1:188761) at re (v3/:1:189016) at v3/:1:341490 at Sr (v3/:1:341539) at e.initEmbeddedCheckout (v3/:1:425878) at initializeCheckout (pay-now:28:39) at pay-now:35:5
Okay, that's pretty clear.
I tried to solve the problem with stripe support but they couldn't help - they said the checkout session was not showing up in my logs on my account, and that the problem must be with my app
However, I can print out the session so it must be being created?
The error message is saying you are trying to use the Checkout Session ID in your front-end. You need to use the client_secret
Where can I get the client secret?
It is part of the Session object
The init method only accepts the client secret. Take a look at our quickstart for some code examples: https://stripe.com/docs/checkout/embedded/quickstart
Thanks I will try to fix this, and will get back to you if I cannot figure it out
Great. You want to pass the client_secret from the Checkout Session objet to your front-end and then use that in the init function
conor-embedded-checkout-java