#devil_api

1 messages · Page 1 of 1 (latest)

versed cargoBOT
flint sluiceBOT
#

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.

versed cargoBOT
#

👋 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/1261274643713622037

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

scenic sierra
#

Baaaaasiclly, I need to charge the client on their account 15$

#

and some application fee

versed shale
scenic sierra
#

so basicaly i can either

#

create a charge against them

#

in their acc

#

or transfer funds

#

which one would be the correct use of "they not having funds in their account"

versed shale
#

You mean if they don't have the necessary balance in Stripe to cover the debit?

scenic sierra
#

Yeah

versed shale
#

I think both will debit their external account in those circumstances, if supported:

If a connected account has a negative balance, Stripe might auto-debit the external account on file, depending on what country the connected account is in. If the external account hasn’t been verified, the debit can fail.

scenic sierra
#

my team was doing smth like: paymentIntents.create({ ...something, transfer_data: { destination: someDestinationAccountId, }, }),
how does this differ from that though?

versed shale
#

Yeah you can't do that to debit a connected account. It'll expect an actual payment method (card)

#

The two methods on the page I linked are the way to go

#

By all means you can process a Payment Intent on your platform to cover the dispute, and ask the connected account owner/person to volunteer their credit card and pay. But that's not an efficient way to do it

scenic sierra
#

AHA, so that's why i cant use payment intent

versed shale
#

And you'll incur processing fees etc

scenic sierra
#

beacuse they would have to actually manually pay it

versed shale
#

Yes, use charges.create

scenic sierra
#

alr, can i have application_fee in charges.create

versed shale
#

What's the use case?

scenic sierra
#

when the dispute comes, it gets charged to the platform, i need to charge them that dispute fee + some application fee

versed shale
#

Your debiting the account with the amount specififed, to move money to your platform. Why would you need an app fee?

versed shale
#
const computedFee = (fee: number): number => 1500 + fee

const charge = await stripe.charges.create({
  amount: computedFee(100),
  currency: 'usd',
  source: '{{CONNECTED_ACCOUNT_ID}}',
})
scenic sierra
#

hmm okay

versed shale
#

Very contrived example, but you get the idea

scenic sierra
#

yeah ofcrouse

scenic sierra
#

umm one

#

more quesiton

#

is stripe.charges.create deprecated?

#

should I use it?

versed shale
#

For this use case it's fine to use. It's deprecated in the context of *accepting payments *