#fonseca_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/1237554000409395280
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! I'm afraid there's no workaround here. Account debits are not supported for BR. You can see the supported countries in https://docs.stripe.com/connect/account-debits
that's not supported too unfortunately
is that we have an affiliate system, referral link and everything, where now I would withdraw a % of the value to our stripe account, and return it to the person's connect account, for example
what I can do?
can you describe in more detail in how this would work? For example, are you planning to take a percentage for each payment made on the connected account?
Yes, my flow works like this:
-
When a person is invited to the platform through a referral link, they earn 1% of the person's profits for 1 year;
-
When a person affiliates with a connect seller's product, they receive a commission for selling the product;
are you using Standard connected accounts?
We can remove these functions, but it would be very bad for our business. Because the type of platform we have, it grows a lot with referral links and affiliate systems
Custom
๐ Taking over this thread, catching up now
Hello River!!
What is the country of the platform?
In Brazil
When both platform and custom connected accounts are from Brazil, Destination Charge with application fee can be used: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements
I'll read the topic, if I have any questions I'll come back here, thanks!!
No problem! Happy to help ๐
Understood!! I was using the application fee to collect the platform service fee
That's right!
Correct me if I'm wrong, from what I understand the application_fee will be transferred to the person's account that I put in transfer_data, and this value would no longer fall to me
I don't understand how, when the payment webhook drops, I can transfer from account X
to account Y the percentage of the sale
Maybe there would be a way to force a payment from a connect account X to account Y?
Stripe doesn't support transferring funds from connected account X to connected account Y
Funds can only be transferred between platform and connected accounts
With destination charge, the funds will be collected on the platform. The application fee will then be transferred to the connected account set in the request
I understand, could I add the value of the percentage in application fee, from the platform to transfer to the connect account?
Since application_fee falls into the platform's account
application_fee_amount can only be final amount after calculating from the percentage: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements#collect-fees
For example, if the product is sold at $100 and the service fee is 1%. The application fee will be $100 * 1% = $1
is to possible change the application fee after create paymentIntent, but before the payment?
Yes! application_fee_amount can be updated via Payment Intent Update API: https://docs.stripe.com/api/payment_intents/update#update_payment_intent-application_fee_amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright, thanks very much!!!!!!
That's awesome
Hello, sorry again
But have new small problem I think too
private async transferToConnectedAccount(
destination: string,
amount: number,
currency: string,
source_transaction: string,
) {
try {
console.log('Transferring funds to connected account');
// Segundo passo: enviar os fundos da conta da plataforma para a segunda conta conectada
await this.stripe.transfers.create({
amount: Math.round(amount),
currency,
source_transaction,
destination,
});
} catch (error) {
console.error(error);
}
}
await this.transferToConnectedAccount(
member.User.connectedAccount,
memberAmount,
paymentIntentSucceeded.currency,
paymentIntentSucceeded.latest_charge.toString(),
);
error: StripeInvalidRequestError: No such charge: 'ch_3PDyrx2cNRtLdE8W1ikyg9XT'
but it exists...
Can you share the request ID (req_xxx) of this error? Hereโs how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_heRVsROy03UD3rr
The charge was created on the connected account, but you're trying to transfer it from the platform.
You can only transfer the charge that is on the platform.
The issue here is with your Payment Intent that was created on the connected account. It should be created on the platform, i.e. Stripe-Account header should be removed from your code
As mentioned earlier, Stripe doesn't support moving funds from connected account X to connected account Y
The recommended way is to collect funds on platform, then transfer to connected account X and Y when needed
is that the payment takes place on a connect account, however, even adding the amount in application fee, I need to send it from the platform to the user, and here in Brazil the source_transaction is mandatory requested
Can you share the reason why the payment has to be taken place in a connected account? In pi_3PDyrx2cNRtLdE8W10iiLBI6, it was a Direct Charges (not Destination Charge): https://dashboard.stripe.com/test/logs/req_lh0Rhw7dTL8O4H
With destination charge, the funds will be created on the platform. The application fee will stay in the platform and the remaining amount will be transferred to the connected account: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements. This will also allow you to manual transfer funds to another connected account