#tjon_code
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1271480693981184162
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there đź‘‹ if you want to make the request as your Platform account, then you shouldn't pass an account ID when initializing Elements (that's used to make requests for Connected Accounts).
Sorry I meant I am trying to make the call as one of our connected accounts
I’m still getting used to the terminology
So I am trying to make a direct charge for a connected account
Then the approach you described is correct. Are you running into a problem/error, or seeing something that you aren't expecting?
Yes I am getting the error confirmation token does not exist.
That seems like it's for a different request than the code you shared then, since the shared code is for creating a Confirmation Token. Can you share the ID of the reuqest that is erroring?
When checking the logs on the workbench I see the confirmation token generated by “this account” but the payment intent trying to get the confirmation token is under the “platform account” when filtered
The payment intent req: req_LlzODocfe0R8KV
The confirmation token req: req_kdC698A0N1iSDL
Yeah, that Confirmation Token creation request isn't running on the right account based on what you're describing. Can you share your code for initializing Elements?
elements = stripe.elements(options);
const options = {
mode: 'payment',
amount: 100,
paymentMethodCreation: 'manual',
currency: 'usd',
paymentMethodTypes: ['card', 'us_bank_account'],
//confirm = true,
setupFutureUsage: 'off_session',
payment_method_options: {
card: {
setup_future_usage: 'off_session'
},
us_bank_account: {
setup_future_usage: 'off_session'
}
}
};
Sorry. I should have asked for you code that initializes stripe.js
stripe = Stripe(defaults.stripePublicKey, {
stripeaccount: defaults.stripeClientAccountID
});
Are you seeing an error in the browser console when you run that? I think stripeaccount needs to be adjusted stripeAccount