#Rayon - payment
1 messages · Page 1 of 1 (latest)
Hi there!
It should be instant yes.
But it may depend on the Payment Method used.
Yes depends on the payment method. Can you share a PaymentIntend ID (pi_xxx) so I can have a look?$
There should be a pi_xxxxx string in the top right of that page. Can you copy-paste it here?
pi_3LNBIRA8UQ0Ah7I21Mr5pngI
If this is not instant , is there webhook which runs when the balance goes to platform so I can update the payment status in my database
I see this payment got a payment_intent.succeeded webhook event and is now succeeded. Where do you see "will be available soon"?
I was doing payment then transfer but the balance was unavailable in platform account
Customer did 2000 payment which succeded , then transferring that to connected account gave me insufficient fund
All of this is in test mode
Well, when the payment succeeds, the funds are first moved to your pending balance. You need to wait a couple of day for them to move to the available balance.
When creating a transfer, do you use the source_transaction parameter? https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction
You can use this parameter to transfer funds from a charge before they are added to your available balance.
I know about that , but do we wait couple of days even in test mode is what I was asking
Yes, by default test mode works like live mode. But if you want to bypass the pending balance in test mode, it's possible by using this test card: https://stripe.com/docs/testing#available-balance
Oh , so If I am right , even though we get payment_intent.succeeded , funds might be transferred yet to platform account ?
If that , is there webhook that runs when it becomes available
even though we get payment_intent.succeeded , funds might be transferred yet to platform account
What do you mean? The platform is making the payment, correct? So as soon as you getpayment_intent.succeededthe funds are in your pending balance.
no no , the customer is paying ,
I am asking when will the customer paid amount comes to main stripe account
payment_intent.succeeded is triggered but fund are yet available in main stripe account
I mean the platform is creating the PaymentIntent and the customer is paying the platform, correct?
So as soon as you get payment_intent.succeeded the funds are in your pending balance (assuming you use cards as payment method, some other payment methods may have some delay) . And a few days later the funds move to your available balance. This is true in both test mode and live mode.
ok thank you
You said the fund are in your pending balance
I wanted to know if there is any webhook or any programatical ways to know when they are becomes available from pending
You can always check your balances (both pending and available) with https://stripe.com/docs/api/balance/balance_retrieve
And when your available balance increases, you will get a webhook event balance.available https://stripe.com/docs/api/events/types#event_types-balance.available
okay that's what I needed thanks
Happy to help 🙂