#alan-bb-checkout-expiry

1 messages ยท Page 1 of 1 (latest)

minor crystal
#

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?

north summit
#

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
);

minor crystal
#

Do you have a request ID for that?

north summit
#

com.stripe.exception.InvalidRequestException: No such checkout session: 'cs_test_b19C96h7Aml1ECFd8DmXbJtJwLaDmBJzngTmDaWpJ3iidcoyayafwMYHu6'; code: resource_missing; request-id: req_6xq486eFpJMSb6

minor crystal
#

If you hard code the Connected Account ID do you get same issue?

north summit
#

5 mins I will try ๐Ÿ™‚

#

it worked :/

#

I guess the issue is somewhere in my code, thank you for your help tho! ๐ŸคŸ

minor crystal
#

Yep would just log out each step for how that variable is getting created and used. Hope it is a quick debug!