#hotmongoose_error
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/1222441078058254357
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You can't have zero involment of the Platform. The Platfrom still needs to have some connection with the Connected Account eventually.
https://docs.stripe.com/connect/destination-charges for Destination Charge or
https://docs.stripe.com/connect/separate-charges-and-transfers for Separate Charges and Transfers
okay sure. can I take some charge in platform and then transfer all to the other account?
what are the geo restrictions of this?
Also is this available in stripe npm module?
Yes that's the point of application fee, and yes we have sample code in Node JS
See the 2 Docs link above
when I am using the docs 2 in nodejs,
In this below code, I am having this error.
return new StripeInvalidRequestError(rawStripeError);
^
StripeInvalidRequestError: No such on_behalf_of: 'acct_1OyWtQFGSJQBCGdw'
at Function.generate (/Users/singh/office/cryptoati/communityplatfrombackedn/stripe-module/node_modules/stripe/cjs/Error.js:10:20)
at res.toJSON.then.Error_js_1.StripeAPIError.message (/Users/singh/office/cryptoati/communityplatfrombackedn/stripe-module/node_modules/stripe/cjs/RequestSender.js:105:54)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
type: 'StripeInvalidRequestError',
raw: {
code: 'resource_missing',
doc_url: 'https://stripe.com/docs/error-codes/resource-missing',
message: "No such on_behalf_of: 'acct_1OyWtQFGSJQBCGdw'",
param: 'on_behalf_of',
//CODE :
const paymentIntent = await stripe.paymentIntents.create({
amount: amount,
currency: 'usd',
automatic_payment_methods: {
enabled: true,
},
on_behalf_of: clientId,
});
Can you find your errored request id req_xxx from https://dashboard.stripe.com/test/logs ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
but when I do this link, it doesn't show logs,
this is the latest link. https://dashboard.stripe.com/test/logs/req_YM9x1rRvrtCBp2?t=1711524790
I see, but the Account Id there, is it connected to your account?
It can't be any account
it needs to be a Connected Account to your Stripe Account
You will need to onboard them to your account first
there are two errors, when I use my own id . it shows
"message": "The 'on_behalf_of' param cannot be set to your own account.",
But when I use other id it shows.
"message": "No such on_behalf_of: 'acct_1OyX5gFptiVITOez'",
Yes it's correct to be another account, but that another account should be connected to your account