#cruchot_best-practices

1 messages ¡ Page 1 of 1 (latest)

unreal zodiacBOT
#

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

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

north steeple
#

How are you tracking a user's 'available balance' within Stripe?

fleet relic
#

Hi

#

A "user's balance" is its connected account available balance

#

In my db, each user has a "stripe_account_id" and "stripe_customer_id", which references a connected account and a customer

north steeple
fleet relic
#

Why ? Is there another way ?

north steeple
fleet relic
#

Yes but it is stated somewhere in the docs that this feature is not dedicated to be used as a "wallet"

#

I think its there only to receive refunds

north steeple
#

Yeah there's no real native wallet functionality at all

north steeple
fleet relic
#

I'm also using Stripe Connect because standard users can become dealers (sellers) on the marketplace. This means they receive payments from users who buy their products (not directly, since the platform account holds the funds until the customer confirms he received his order).

#

This is why each user has connected account created as soon as he signs up, and this is why I want to use its balance as a "wallet"

north steeple
#

Yep, I understand all that. But you just can't use the account balance as a wallet. They're paid out automatically in most scenarios, pretty frequently

fleet relic
#

No I disabled this, payouts are manual on every connected accounts I create

north steeple
#

Yeah but you still can't use accounts to accumulate balances. We note this here

Send manual payouts to your connected accounts.

#

90 days max for most countries, before the payout the funds automatically

fleet relic
#

Oh I missed that

#

So you're telling me Stripe offers no solution to my use case?

north steeple
#

Not natively, no

#

The best option, as I said, is customer credit balance

fleet relic
#

Ok so if I summarize :

  • I should not use connected accounts to hold users' balance (wallet)
  • I should use connected accounts to transfer sellers' payments, but these funds won't stay more then 90 days on their balance
  • I should use customer credit balance to handle the users' balance (wallet)

Is that correct?

north steeple
#

Seems fair yes

fleet relic
#

Customer credit balance can't get payout right? I can't handle every situation with that?

north steeple
#

No, it's a 'digital' balance that doesn't actually map directly to any funds

fleet relic
#

Can a user (customer) top-up his credit balance?

#

I used to enable this by making a payment to the platform account, then immediately transfer the funds to the users connected account

north steeple
#

You can accept an ad-hoc payment and then increment their balace to reflect that payment yes

fleet relic
#

If I implement this, it means that when a user top-up his wallet's balance (from his perspective, on my app), he is actually adding a negative amount (a credit) on his customer credit balance, correct?
And when he wants to use this balance to make a purchase, I will only have to debit this balance of the corresponding amount. Can you confirm?

#

Can you also confirm that this is the customer credit balance, and that retrieving the customer and checking this param is the correct way to get his balance?

north steeple
#

Correct, yes

fleet relic
#

Asking this because it seems that there is no direct Retrieve a customer credit balance method in the API

north steeple
#

You're right, there is not. Those are for cash balances which relates to bank transfer payments

fleet relic
north steeple
#

That's the same thing. Credit/invoice balance

fleet relic
#

I'm a bit lost, because I don't really understand the cash balance I think

north steeple
#

Cash balance is the different concept

north steeple
fleet relic
#

Ok I understand now, thank you very much for your time