#hotmongoose_error

1 messages ¡ Page 1 of 1 (latest)

dawn pikeBOT
#

👋 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.

gusty starBOT
clear jasper
#

You can't have zero involment of the Platform. The Platfrom still needs to have some connection with the Connected Account eventually.

#

With Connect, you can create charges on your platform account, take fees, and then transfer remaining funds to your connected accounts.

Learn how to use Connect to create charges on your platform account on behalf of connected accounts, perform transfers separately, and retain funds in the process.

crisp heart
#

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?

clear jasper
#

Yes that's the point of application fee, and yes we have sample code in Node JS

#

See the 2 Docs link above

crisp heart
#

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

clear jasper
crisp heart
clear jasper
#

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

crisp heart
#

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'",

clear jasper
#

Yes it's correct to be another account, but that another account should be connected to your account