#JohnM-charge.successful-time
1 messages · Page 1 of 1 (latest)
hello, catching up here one sec
it normally take to get a charge.sucessful on a paymentintent webhook
should be same or faster than test mode. Depends on what the event is and the request to create the Charge, can you share both so I can check?
the charge id is ch_3JrlLcHFDCZvO5mL0agANwcV. the event id is evt_3Jrli2HFDCZvO5mL1vgo6Hfj
or, actually I guess the question that is more important... in production... what is the time between when a paymenetIntent is executed and the charge .success arrives ? With ach it can be days.
what is the time between when a paymenetIntent is executed and the charge .success arrives ?
no time expectations, can be instantaneous or seconds
and that is for cards alone, can be days for ACH
will the paymentintent fail when I call it if the payment is in error... I.E. invalid card info, or rejected by card network ?
will the paymentintent fail when I call it if the payment is in error
not sure I understand, what is "calling it" ?
when I execute the paymentIntent api
I am calling it manually because we have already stored the credit card...
In out flow.. the customer sets up their payment methods ahead of time. We pay an item in our system when they select it. We do not go through a checkout process
so yes if you create and confirm a PaymentIntent you get a 402 with a declined Charge under the PaymentIntent
you can still try to pay the same PaymentIntent n times until you get atleast one successful Charge on it
I create a new payment intent for each charge....
sure that works too, I'm just explaining how they can work i.e. one PaymentIntent can be reused even if it keeps declining until it gets a successful charge, at which point it reaches an "end" state
so, for credit cards, when will I have the availability of funds ? When the paymentintent is successful ? Or is it like ACH ?
or should I wait for the charge.successful webhook in the case I want to transfer the net amount of this to a connected account
even card funds take days to settle (depend on the country)
1/ you create a PaymentIntent, that succeeds
2/ you ~immediately get charge.succeeded
3/ that Charge has a BalanceTransaction with an available_on timestamp n days from now
4/ at that available_on date, you get the $X funds settling in your account balance
this doc talks a bit about that for Automatica and Manual Payouts (depending which you are on) https://stripe.com/docs/payouts
but if I do a transfer using the paymentIntent as the source of the transfer, the transfer will not execute until the funds are available ... correct ?
with source_transaction ? then yes the Transfer is sent once balance becomes available
good. I understand that and that is how we are handling ACH. So in either case....ACH or credit cards... funds are not available for payout or transfer at the time of the charge.successful web hook... but I can do a transfer referring to the charge, and it will execute when funds are avaiable.
well for ACH we (you/me/others) discussed a different flow right? where source_transaction doesn't work cleanly with async ACH failed charges as that will still create the Transfer
so if you're using source_transaction, you will have to also build recovering funds from the Connect acct by reversing transfers
I will not create the transfer until I receive the charge.successful webhook.
in the event of a failed ach... we will notify the customer and they will have to do another charge ... hopefully after resolving their NSF issue
or rinse... wash... and repeat
@summer quartz do you still have questions left?
nope.. you can close