#palminyx

1 messages · Page 1 of 1 (latest)

unborn duneBOT
#

Hello! We'll be with you shortly. 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.

distant fern
#

When you say platform fees you mean by the platform commission (10%) ?

#

And are you using Destination Charge or Direct?

supple grotto
#

platform_fee is commission (10% so 3.50 in this case) minus stripe_fee (1.70 in this case)

#

let transfer = await stripe.transfers.create({
amount: amount,
currency: currency,
destination: sellerExpressAccountID,
metadata: {
commission_Stripe_take: commission_Stripe_take,
commission_MyCompany_take: commission_MyCompany_take,
commissionAmount: commissionAmount
},
transfer_group: transfer_group,
});

distant fern
#

Therefore my net commission (let's call it platform_fee) is 3.50 - 1.70 = 1.80 euro.
AFAIk, there is no field that displays this information

supple grotto
#

Transfer is created as indicated above and the transfer_group is the ID of the payment document in Firestore

distant fern
#

You have the stripe fee and the platform commission, then you can compute what you call the platform fees

supple grotto
#

And i want to be able to control the flow of transfers

distant fern
#

I see, you are looking at the net income of the platform I thinik

supple grotto
#
  1. create a payment intent with a manual capture method
  2. user confirms and funds are captured
  3. service is delivered on date X
  4. one day after completion of the service, if no issues arise then a transfer is automatically created to the connect account of the seller.

I want to be able to hold funds in my platform in case something happens and the customer flags a problem. If everything goes smoothly, then i want the transfer to be created

distant fern
supple grotto
#

Any suggestions on how to implement it?

distant fern
supple grotto
#

I'm going to read it, however do you already know if it's possible to do it with the flow i'm using? And would these reports be graphs in the dashboard?

distant fern
#

so you probably need to explore it.

supple grotto
#

Would i be able to implement the same logic by using application_fee and transfer_data instead?

#

What i mean is to keep funds pending for 24 hours after the completion of the service

sage fractal
#

👋 stepping in here as os4m37 had to step away

supple grotto
#

Hi bismarck

sage fractal
#

Well application fees are immediate upon successful payment

#

However you could always refund them

#

Overall I'm not sure I understand the question around application fees though (I did skim the above but still not really understanding how application fees are a workaround)

supple grotto
#

Are application fees shown in a chart of the dashboard?

sage fractal
#

I assume so but really we just focus on the API here and we don't know anything about the Dashboard.

supple grotto
#

Got it. Are you practical with the Reports API?

#

WOuld you be able to give me some suggestions on how to implement what i'm trying to do?

#

Basically I'd like to have a way to know how much money i'm actually making in a given time frame, globally and per customer

sage fractal
#

Yeah then your two options are the Reports API or retrieving data directly from the API.

#

I see my colleague already linked our docs on the Reports API above

#

But you want to go through that and look at the different reports and see if one will meet your needs

#

That is the easiest way to get this data

supple grotto
#

OK perfect, thank you.

#

Have a great day man

#

I'll reopen a thread in case i need further help

#

Actually another question:how are funds in a connected account distinguished between pending and available?

#

because i've not understood what decides if the funds after a transfer are available or pending and how to control this state

sage fractal
#

It is the same as with the platform really -- basically the funds are available at the same time, regardless of whether they are in the platform or Connected Account.

#

But they still become available at the same point

supple grotto
sage fractal
#

Cards are synchronous

supple grotto
#

Because documentation mentions listening for the event charge.succeeded.
Right now i'm using 'payment_intent.succeeded' as trigger to process the transaction in my booking system.

sage fractal
#

So then you are fine and you can look at the available_on of the balance transaction immediately when the Charge is successful for Cards

#

Yep payment_intent.succeeded is the right thing to use.

supple grotto
#

after 'payment_intent.amount_capturable_updated' is triggered by await stripe.paymentIntents.capture(paymentID);

sage fractal
#

Yes

supple grotto
#

Perfect!

let transfer = await stripe.transfers.create({
amount: amount,
currency: currency,
source: latest_charge,
destination: professorExpressAccountID,
metadata: {
commission_Stripe_take: commission_Stripe_take,
commission_MyCompany_take: commission_MyCompany_take,
commissionAmount: commissionAmount
},
transfer_group: transfer_group,
});

I've added the bold part, if i understood it correctly is to make sure that the transfer only happens with funds available from the charge.

sage fractal
#

It would be source_transaction but you only want to use that if you want to Transfer before the funds are available.

supple grotto
#

Ok so i dont need it by using cards

sage fractal
#

I'm not sure what you mean by that exactly.

supple grotto
#

And i have to associate custom metadata to my transfer and use reports API to keep track of it

sage fractal
#

I mean it all depends on your integration

#

And what you want

#

I'm not sure what you are expecting differently, to be honest.

supple grotto
#

I want a very simple way to keep track of my business

  1. A report (Excel, CSV, a graph, just something) that tells me from day 1 to last day of X month I've made XXXX € from all transactions (so all users)
    [this would be amount of charge (100%) minus stripe_fee (1.5% + 0.25€) minus the 90% given to the seller]
  2. A report that when i select a user, it tells me the same data as above, only specific for that customer
unborn duneBOT