#conor-embedded-checkout-java

1 messages · Page 1 of 1 (latest)

plain summitBOT
strange mortar
#

HI 👋

#

Lets discuss your implementation here

iron lark
#

Hey, thanks for this!

#

So my current flow is as follows:

strange mortar
#

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

iron lark
#
  1. User onboards with stripe connect
strange mortar
#
  1. What kind of checkout session are you creating? Full redirect or Embedded?
iron lark
#

Trying to do embedded

strange mortar
#
  1. What error message do you receive (Exact text)
iron lark
#

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

iron lark
#

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

strange mortar
#

Okay, that's pretty clear.

iron lark
#

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?

strange mortar
#

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

iron lark
#

Where can I get the client secret?

strange mortar
#

It is part of the Session object

iron lark
#

This is my current jsp

#

So what should I change?

strange mortar
iron lark
#

Thanks I will try to fix this, and will get back to you if I cannot figure it out

strange mortar
#

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

plain summitBOT
#

conor-embedded-checkout-java