#Atish
1 messages · Page 1 of 1 (latest)
Hello, what is the error?
No such checkout.session: cs_test_a1pBWrZV5ov2wns7cQmMaWlUOIb90N52iUqIRZ4BTyeiYRYi4t6HDpy1ww
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
val session = Session.retrieve(paymentSessionId)
I am only passing the session id
I need to pass connected account id as second parameter or?
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.
Need to pass while calling session.expire() as well?