#fonseca_error

1 messages ยท Page 1 of 1 (latest)

haughty pagodaBOT
#

๐Ÿ‘‹ 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.

sleek crater
sterile brook
#

You have US to BR??

#

@sleek crater

#

I didn't find it in this document

sleek crater
#

that's not supported too unfortunately

sterile brook
#

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?

sleek crater
#

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?

sterile brook
#

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;

sleek crater
#

are you using Standard connected accounts?

sterile brook
#

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

turbid swiftBOT
sterile brook
lost knoll
#

๐Ÿ‘‹ Taking over this thread, catching up now

sterile brook
#

Hello River!!

lost knoll
#

What is the country of the platform?

sterile brook
#

In Brazil

lost knoll
sterile brook
#

I'll read the topic, if I have any questions I'll come back here, thanks!!

lost knoll
#

No problem! Happy to help ๐Ÿ˜„

sterile brook
#

Understood!! I was using the application fee to collect the platform service fee

lost knoll
#

That's right!

sterile brook
#

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?

lost knoll
#

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

sterile brook
#

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

lost knoll
sterile brook
#

is to possible change the application fee after create paymentIntent, but before the payment?

lost knoll
sterile brook
#

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

lost knoll
sterile brook
#

req_heRVsROy03UD3rr

lost knoll
#

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

sterile brook
#

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

lost knoll
#

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

Create charges on your platform account, collect fees, and immediately transfer the remaining funds to your connected accounts.

sterile brook
#

my company is a marketplace with sellers of digital products

#

stripe connect is perfect to this

#

but i just have this issue

#

How you said, charges in connect account, I can clone in Plataform Account and attach this?