#kokoneot
1 messages · Page 1 of 1 (latest)
You have insufficient available funds in your Stripe account. Try adding funds directly to your available balance by creating Charges using the 4000000000000077 test card. See: https://stripe.com/docs/testing#available-balance
thats the error to be exact
Yes, the charge will be pending first, then become available later. The processing time of the availability depends on the country. See https://stripe.com/docs/connect/account-balances for more information
when invoice is paid it creates a charge? and is there an event to monitor for the state change?
is it charge.succeeded?
or balance.available
An invoice has a Payment Intent and Charge under the hood. You may use expand payment_intent.latest_charge.balance_transaction. and check for available_on field for the timestamp when the fund will be available: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-available_on using Invoice Retrieval API
- Invoice Retrieval API: https://stripe.com/docs/api/invoices/retrieve
- Expand an object: https://stripe.com/docs/api/expanding_objects
No problem! Happy to help 😄