#Tyren
1 messages ยท Page 1 of 1 (latest)
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
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 ?
Hello ๐
Pompey had to step away
Give me a moment to catch up on the context here
No problem, thanks
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
I'll try then
If you don't provide one, we'll create one for you
https://stripe.com/docs/connect/charges-transfers#transfer-availability:~:text=Stripe automatically creates a transfer_group for you
at least thats how I'm interpreting the docs
(I haven't had a chance to test it myself though)
I agree
What about the last paragraph in the documentation of transfers availability ? https://stripe.com/docs/connect/charges-transfers#transfer-availability
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
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 receivesucceededevent.
I asked as I was thinking about delayed notification payment methods such as ACH where the PaymentIntent typically goes to processing state before succeeding or failing.
https://stripe.com/docs/payments/payment-methods#payment-notification
But since you're already listening to relevant webhook events, you should be fine.
Let me know if that helps @torn stratus ๐
Ok that what I was thinking too
No further questions, thanks a lot, sorry for the late answer ^^
NP! ๐ Happy to help
Good luck