#ashishchicmic
1 messages · Page 1 of 1 (latest)
You may listen to payout.paid event and retrieve the charges in the payout with this guide: https://stripe.com/docs/expand/use-cases#charges-in-payout
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
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?
Stripe
To find out whether the subscription payment has been made successfully, invoice.paid event can be listened: https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions
You can then use the balance transaction from the payment intent of the invoice to find out when the funds will be available in Stripe balance: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-available_on
can we use invoice.payment_succeeded event?
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
ok. so here is the flow which I should use:
- Create user's subscription
- 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
- 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?
Yes, this looks right to me