#zeke_error

1 messages · Page 1 of 1 (latest)

lethal forgeBOT
pearl yachtBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lethal forgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1260447007668179004

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

lone nimbus
#

The error means you need to set a Connected Account to that parameter, not your own Platform account

silver bridge
#

Yes!

#

so do i need to make a new account on with a diffrent email?

#

and then send it the connect link?

#

like how can I test it?!

lone nimbus
#

Almost, that you need to make a Connected Account to your Platform. Because this transfer_data.destination parameter expects a Connected Account Id

#

Why are you using this parameter btw?

silver bridge
#

Im trying to make and application fee

#

You think I could just get rid of the transfer data and keep only the StripeAcount:"" that it would be fine?

#

because I have the transfer data set like this:

const stripeSession = await stripe.checkout.sessions.create(
{
success_url: ${process.env.NEXT_PUBLIC_SERVER_URL}/thank-you?orderId=${order.id},
cancel_url: ${process.env.NEXT_PUBLIC_SERVER_URL}/cart,
payment_method_types: ["card"],
mode: "payment",
metadata: {
userId: user.id,
orderId: order.id,
},
line_items,
payment_intent_data: {
application_fee_amount: applicationFeeAmount,
transfer_data: {
destination: "acct_1PareWK75Cw2zDdK", // Replace with the actual connected account ID
},
},
},
{
stripeAccount: "acct_1PareWK75Cw2zDdK", // Replace with the actual connected account ID
}
);

lone nimbus
#

No you can't have both

#

stripeAccount is for Direct Charge, when you have Standard Connected Account

#

destination is for Destination Charges, when you have Express or Custom Account

silver bridge
#

What if I want standard

#

Thats what I really want is standard connect accounts and Direct charges

lone nimbus
silver bridge
#

Also is there any way to test out the connected accounts? I just want to test our the fee and I cant because im in test mode😂

lone nimbus
#

Why can't? You can create Test mode transaction and inspect the Balance Transaction object

#

It will contains the fee breakdown

silver bridge
#

Because I cant create the transaction

#

See in my checkout page on my server side It should send me to the stripe checkoutpage but it cant because it does not have '{{CONNECTED_ACCOUNT_ID}}'

#

But i cant make a connected account because I am in test mode

#

am I not understanding something?!

lone nimbus
#

You should be able to create a Connected Account in Test mode

silver bridge
#

Yeah im trying to get one of the account IDS but its not loading🤔

lone nimbus
silver bridge
#

Here watch that

#

What do you think @lone nimbus

lone nimbus
#

Sorry can't open the file. Could you elaborate here instead?

silver bridge
#

pretty much I clicked on a on of my connected seller IDs and pasted into my project here:

const stripeSession = await stripe.checkout.sessions.create(
{
success_url: ${process.env.NEXT_PUBLIC_SERVER_URL}/thank-you?orderId=${order.id},
cancel_url: ${process.env.NEXT_PUBLIC_SERVER_URL}/cart,
payment_method_types: ["card"],
mode: "payment",
metadata: {
userId: user.id,
orderId: order.id,
},
line_items,
payment_intent_data: {
application_fee_amount: 123,
},
},
{
stripeAccount: "{{acct_1PajOI09PDa209NJ}}", // Replace with the actual connected account ID
}
);

#

It comes back with and err:

message: "The provided key 'sk_test_***********************************************************************************************L2Kc' does not have access to account '{{acct_1PajOI09PDa209NJ}}' (or that account does not exist). Application access may have been revoked.",
lone nimbus
#

Yes so I mentioned that you would need to create a Standard Account first

silver bridge
#

Sir I’m going to be completely honest with you in this file under Use the /v1/accounts API to create a new account and get the account ID. You can prefill information on the account object for the user before you generate the account link. You must pass the following parameter:

#

The create api link I have no idea we’re to put that code

lone nimbus
#

What do you mean? It's an API call

silver bridge
#

So this right here is an api

#

/v1/accounts

#

Or could I just paste this into my code and get an outcome

const stripe = require('stripe')('sk_test_');

const account = await stripe.accounts.create({
country: 'US',
email: 'jenny.rosen@example.com',
controller: {
fees: {
payer: 'application',
},
losses: {
payments: 'application',
},
stripe_dashboard: {
type: 'express',
},
},
});

#

It’s so confusing to me I guess

lone nimbus
#

Please don't paste the secret key here

#

sk_test_xxxx

#

Redact it

silver bridge
#

There