#alan-bb-checkout-expiry
1 messages ยท Page 1 of 1 (latest)
Hi! The issue is that you are creating the request on your platform instead of the Connected Account. This means there is something wrong with .setStripeAccount(connectedAccountId)... the Connected Account ID isn't getting passed for some reason. Can you log out that variable and make sure it is the Connected Account ID?
yea, I logged it, and it seemed correct, which is why I am confused
connectedAccountId: acct_1H3LxJCJiM4tk6AV
5 mins, I will try and put the create and retrieve in the same block of code and add debug
I tried this exact code and it fails :/
RequestOptions requestOptions = RequestOptions.builder()
.setStripeAccount(connectedAccountId)
.setApiKey(Config.get().get("stripe_sk"))
.build();
session = Session.create(params, requestOptions);
Session newSession =
Session.retrieve(
session.getId(),
requestOptions
);
Do you have a request ID for that?
com.stripe.exception.InvalidRequestException: No such checkout session: 'cs_test_b19C96h7Aml1ECFd8DmXbJtJwLaDmBJzngTmDaWpJ3iidcoyayafwMYHu6'; code: resource_missing; request-id: req_6xq486eFpJMSb6
If you hard code the Connected Account ID do you get same issue?
5 mins I will try ๐
it worked :/
I guess the issue is somewhere in my code, thank you for your help tho! ๐ค
Yep would just log out each step for how that variable is getting created and used. Hope it is a quick debug!