#Tyren

1 messages ยท Page 1 of 1 (latest)

buoyant pawnBOT
shadow pagoda
#

It sounds like the charge succeeded but the funds from it are not available for it yet (this usually takes a couple days in live mode so we simulate that in test mode).

We actually have a parameter we made just for this. When creating your transfer, you can provide your payment's ID to the source_transaction parameter and Stripe will wait for the funds to become available before sending them to your user. https://stripe.com/docs/connect/charges-transfers#transfer-availability

#

You can send the funds immediately, but that would mean that your platform is sending its own money before you receive the money from this payment. That is a totally valid way to do it but you will need to make sure your account always has enough money on hand

torn stratus
#

Oh okay, I though the source_transaction parameter was needed for direct payments. I didn't understand it was independant. Its awesome.
Making sure my account has enough money is not a great solution indeed.

Thanks a lot !

#

Just some precisions though
Can I still provide transfer_group when using source_transaction ?
As I only do transfers when receiving a succeeded event, am I concerned by the source_transaction failure and have to cancel transfer ?

silver anvil
#

Hello ๐Ÿ‘‹
Pompey had to step away
Give me a moment to catch up on the context here

torn stratus
#

No problem, thanks

silver anvil
#

I'm not 100% certain but I think you should be able to provide the transfer_group along with source_transaction when creating a transfer as the API ref doesn't list any conditions.
https://stripe.com/docs/api/transfers/create

torn stratus
#

I'll try then

silver anvil
#

at least thats how I'm interpreting the docs

#

(I haven't had a chance to test it myself though)

torn stratus
#

I agree

silver anvil
#

Are you only accepting card payments or do you accept other payment methods such as ACH?

#

As i'm only doing transfers when payment_intent.succeeded, should I be worried about canceling transfers ? As the charge succeeded I understand that I won't encounter this case.. But can't be sure
You should be fine with this approach for all kind of payment methods really since you only proceed with the transfer once you receive succeeded event.

#

But since you're already listening to relevant webhook events, you should be fine.

#

Let me know if that helps @torn stratus ๐Ÿ™‚

torn stratus
#

Ok that what I was thinking too

#

No further questions, thanks a lot, sorry for the late answer ^^

silver anvil
#

NP! ๐Ÿ™‚ Happy to help
Good luck