#joelalcedo - available balance
1 messages · Page 1 of 1 (latest)
Hello, the funds aren't immediately available (unless you use the special card that the error mentions) because it takes time for funds to actually be transferred from the bank after the transaction is approved
But if you use that 0077 card or pm_card_bypassPending then we make the funds available immediately for you to test with
hi Pompey - thanks for the response!
in a live setting, what should be the trigger for a transfer to occur? in a live setting i would like the process to work like this:
user checks out -> paymentsIntent.create is called -> transfers.create is called
but in a live setting if the same issue occurs (i.e. it takes time for funds to actually be transferred from the bank), i will run into the same problem.
is there a way to set transfers.create up in a way where it is triggered once funds are cleared?
or ideally, is there some way to automatically allocate the transfer as a pending amount to the connected account upon checkout?
if i am correct, that is what the source_transaction: "{CHARGE_ID}", field is for
Yes, that is typically why you would want to use the source_transaction parameter. You can also wait on the webhook event and do it manually but providing the source transaction is usually easier
ok, i think i know what needs to happen now, I'm going to try to get this to work and will circle back. thank you so much!!
am i right to assume the charge ID is something that is generated at the time of paymentsIntent.create? is it the same thing as the client secret?
No, a Charge is an object that refers to a specific payment attempt
Charges are created when you try to confirm the payment intent
You can see the data related to them here https://stripe.com/docs/api/charges/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.