#ashishchicmic

1 messages · Page 1 of 1 (latest)

finite haloBOT
merry jasper
wicked cedar
#

but isnt the payout created when someone attempts to withdraw funds to their bank account?

#

I need to know whether a user's subscription payment on our platform has been successfully processed or not

#

in case of susbcriptions

merry jasper
#

do we need to check periodically that payment has been recieved in account or is there any event that I can use?
Do you mean Stripe or external payout bank account?

wicked cedar
#

Stripe

merry jasper
wicked cedar
#

can we use invoice.payment_succeeded event?

merry jasper
#

invoice.payment_succeeded event will only be sent if the invoice amount is non-zero. invoice.paid event will be sent for both zero and non-zero amount invoices

wicked cedar
#

ok. so here is the flow which I should use:

  1. Create user's subscription
  2. Once I receive invoice.paid event then I should mark that payment has been done by the user and we'll be receiving amount soon in stripe balance
  3. Will use the balance transaction from the payment intent of the invoice to find out when the funds will be available in Stripe balance.
    right? can you verify?
merry jasper
#

Yes, this looks right to me

wicked cedar
#

Thanks a lot

#

Have a nice day