#Atish

1 messages · Page 1 of 1 (latest)

ripe moatBOT
strong karma
#

Hello, what is the error?

strong karma
#

So it looks like you are creating that Checkout Session on one of your connected accounts. When you retrieve it are you also passing in the ID of that same connected account?

#

The most common cause of this error is creating the session on your connected account but trying to retrieve it on your platform

snow ermine
#

val session = Session.retrieve(paymentSessionId)

#

I am only passing the session id

#

I need to pass connected account id as second parameter or?

strong karma
#

Correct

#

Pass it as a second parameter the way that you are passing that ID when creating the Checkout Session

#

Basically, objects only exist on the account that they were created on.

snow ermine
#

Need to pass while calling session.expire() as well?

strong karma
#

Correct

#

Any API call that is working with that session will need that account ID