#devil_api
1 messages · Page 1 of 1 (latest)
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.
- devil_api, 22 hours ago, 24 messages
👋 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.
Baaaaasiclly, I need to charge the client on their account 15$
and some application fee
Depending on your Connect integration, you'd generally debit the account: https://docs.stripe.com/connect/account-debits
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"
You mean if they don't have the necessary balance in Stripe to cover the debit?
Yeah
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.
my team was doing smth like: paymentIntents.create({ ...something, transfer_data: { destination: someDestinationAccountId, }, }),
how does this differ from that though?
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
AHA, so that's why i cant use payment intent
And you'll incur processing fees etc
beacuse they would have to actually manually pay it
Yes, use charges.create
alr, can i have application_fee in charges.create
What's the use case?
when the dispute comes, it gets charged to the platform, i need to charge them that dispute fee + some application fee
Your debiting the account with the amount specififed, to move money to your platform. Why would you need an app fee?
Then you'd just set amount to be 1500 + fee
const computedFee = (fee: number): number => 1500 + fee
const charge = await stripe.charges.create({
amount: computedFee(100),
currency: 'usd',
source: '{{CONNECTED_ACCOUNT_ID}}',
})
hmm okay
Very contrived example, but you get the idea
yeah ofcrouse
For this use case it's fine to use. It's deprecated in the context of *accepting payments *