#AndrewXia-connect

1 messages ยท Page 1 of 1 (latest)

sturdy garnet
#

Hello! Give me a minute and I can help

cursive sable
#

no rush!

#

updated the checkout session code, realized I pasted in the wrong stuff

sturdy garnet
#

Yes, with direct charges the amoutn is immediately paid to the vendor account and will be available to pay out to their external bank account after X number of days. IS there a reason you're using Direct charges, and not destination charges?

cursive sable
#

dump question, how do I use destination charge?

sturdy garnet
#

Ah, actually I was wrong - it does lookk like you're using destiantion charges ( I see you setting transfer_data [destination.

cursive sable
#

ah yeah I updated that just now to actually reflect my code, pasted in something wrong earlier

sturdy garnet
#

๐Ÿ‘

#

So correct me if I'm misunderstanding, but is your goal to delay when the funds hit the connect account's stripe balance, or to delay when the payout is actually happening?

cursive sable
#

I want to delay when the payout is actually happening

#

The goals is if the customer cancels and wants a refund, I can refund the remaining amount that has not been paid out yet. Is this the right usecase?

sturdy garnet
#

Gotcha - then I think what you have set up is correct. Since they're on a manual payout schedule, the payouts can't be made unless you explicitly create them

cursive sable
#

But currently, the Express Dashboard is showing $0 in "Not paid out yet" but I see the amount in "Total earnings". Doesn't this mean the vendor is being paid out immediately?

sturdy garnet
#

No, that just means how much is in their Stripe Account balance - those funds haven't actually been paid out to an external account yet

cursive sable
#

What's the difference between that and "Not paid out yet"?

#

I also get this error You have insufficient funds in your Stripe account for this transfer. When trying to create a payout with:

await stripe.payouts.create(
        {
          amount: 100,
          currency: 'usd',
        },
        {
          stripeAccount: coach.coach.stripeId,
        },
      )
sturdy garnet
#

Hmm... actually let's back up for a minute - do you mind sharing the request ID that resulted in that error?

cursive sable
#

Sure! how do I get that?

sturdy garnet
#

Alternatively, if you have the account ID of the connect account I can take a look at that

cursive sable
#

The "Insufficent funds" error was this one: req_rTDDbr4tFGr1qm

sturdy garnet
#

Ah, I see what it is - all the funds that the connect account has right now are still pending - they're not available yet. Once those become available you'll be able to payout, but until then the request will fail

cursive sable
#

ohhhh

sturdy garnet
cursive sable
#

I used 4242 4242 4242 4242 is there another one I should be using?

#

Ah nvm, found it, thank you!

sturdy garnet
#

๐Ÿ‘