#tarun_connect-balance

1 messages ¡ Page 1 of 1 (latest)

peak mortarBOT
#

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

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

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.

visual basalt
granite sierra
#

Hello
When you say a user's balance, who exactly are you referring to?
Are you referring to connected accounts or customer objects?

visual basalt
#

So thats where I am a little confused

#

I have two types of transactions one where the user accepts the work from another user and the money for the job gets transfered to the photographer

#

and then I also have subscriptions the photographers can offer where users can sign up if they want

#

the transfer amount shows up but the subscriptions dont

#

so for example here is a subscription ID

#

sub_1PxtlIBTLjxEqPSBCOvFzq0f

#

this subscription amount doesnt currently show up for the creator even though it has been paid

#

the accounts should be connected accounts since the subscription if unique to the seller and not offered by the platform itselkd

#

itself*

granite sierra
#

The subscription you're creating is created on the platform - https://dashboard.stripe.com/test/logs/req_46klDqCkjXPDPx

And I don't see a transfer being made to the connected account for any amount..

Can you confirm which account is the connected account and which account is the platform account?

visual basalt
#

one moment

#

cus_QpYWSPuODOEpzK

#

this is the customer ID of the person who mapde the payment for the subscription (in this case business owner)

#

acct_1PXzSYPhGdKHtuQw

#

this is the account of the person who i thought i set up to make the subscription

#

AKA the person who should be recieving the payment from the subscription

granite sierra
#

So the subscription creation request is being made from acct_1PUiNnBTLjxEqPSB (likely your platform account?)

visual basalt
#

how do i find the platform account ID?

granite sierra
#

Its the account that your API key belongs to

peak mortarBOT
zinc zephyr
#

tarun_connect-balance

visual basalt
#

acct_1PUiNnBTLjxEqPSB is my platform account

#

i just confirmed

#

this is what my create subscription route looks like as well if this helps

zinc zephyr
#

Sorry that's a really large portion of code in a picture. Can you ask a clear/exact question focused on a few lines of code (like 3/5 at most) instead of an entire picture of your screen?

visual basalt
#

so the issue im having is when i create the subscription it needs to be linked to the correct stripe connect account (platform takes a small fee) the rest should go to the connect account

#

sub_1PxtlIBTLjxEqPSBCOvFzq0f

#

I thought I did it for this subscription but it seems the platfrom created the subscription rather than the specific user

zinc zephyr
#

Gotcha! So yeah if you look at the API request that created the Subscription, it's https://dashboard.stripe.com/test/logs/req_46klDqCkjXPDPx. It happened on your own Stripe account with your own API keys and no Connect-related parameters at all. So that's all expected.

Now let's pause and take 2 steps back as there are many ways to integrate Stripe Connect.
First: What type of connected accounts did you pick and what flow of funds that went with it?

visual basalt
#

express accounts and I went with direct fees and trasfers because we hold the money for one time jobs until the buyer approves the sellers works

#

than we manually transfer it to the seller using the API

zinc zephyr
#

what does "direct fees and transfers" mean?

visual basalt
#

sorry i mean separate charges and transfers

zinc zephyr
#

Gotcha perfect. So you as the platform take all the funds for yourself and then transfer those funds to the connected account.

visual basalt
#

so if you pay me for photos, the platform charhes you for the amount and then once you accept my photos the money gets transferred to me

#

correct

zinc zephyr
#

Can you share the exact Transfer id tr_12345 that you created for that Subscription?

visual basalt
#

the issue is if the buyer wants to set up a long term subscription (recurring services) i dont have that set up properly so the money just comes to our account and doesnt get transferred

#

it only works for the one time transactions with my code currently

#

How do you reccomend I set this up for the subscriptions?

zinc zephyr
#

The flow you chose explicitly says "I will take all the funds and figure it out myself". So the idea in this case, if you keep this approach, is every time an Invoice is paid, you would then decide who gets the funds and create a Transfer each time for the underlying PaymentIntent (like you do for a one-time payment).
Does that make sense?
(I can then give an alternative)

visual basalt
#

it does

#

is that what you reccomend doing tho?

#

for the subscription since there is already trust between the two parties could i instead just set up a subscription on behalf of the seller and then just take a fee from it?

zinc zephyr
#

yes that would be much easier!

visual basalt
#

My only concern with this

#

is will it make it hard to figure out how much we actually made in profit?

#

since some payments are transferred and some are fees we take directly out of the subscriptions? Like would it make it sloppy the sales data?

zinc zephyr
#

I don't see why it would no. You still get the funds but you automatically transfer a portion of those funds to the right connected accounts

visual basalt
#

can you advise me on how I would set this up?

#

Ill rerun the code and send the updated request ID's so you can see if i set it up correctly

zinc zephyr
visual basalt
#

settit it up as we speak

#

just a moment