#MarcusStripe
1 messages ยท Page 1 of 1 (latest)
charge.refund is for the Charge being refunded in the first place
charge.refund.updated is for things that happen after that initial creation. For example refunds can fail in some scenarios and you will get a charge.refund.updated event for that https://stripe.com/docs/refunds#failed-refunds
I don't think credit_note.created is inherently tied to refunds but you will get that event if you create a credit note yourself as part of the refund process
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Hello ๐
How can I help?
so are there also refunds that are NOT made by myself, manually???
as far as I remember, thre credit_note is like an abstraction above the refund.. and I can decide if it is paid out to the customer or given as a virtual credit... or so
I used this event in the past to be able to react on any kind of money being send to the customer back.. and then I am creating a credit invoice
Now, I have a similar, but slightly different case, where, for every refund given to the customer I want to check if this customer is related to an affiliate partner, and in that case substract the refund amount from the commission PENDING.
so I am thinking - is it good enough to reuse my existing credit_note.created handler for this also
or do I need a specific handler for charge.refund and or charge.refund-updated
Sorry I don't fully grasp your question/use-case.
so I am thinking - is it good enough to reuse my existing credit_note.created handler for this also
or do I need a specific handler for charge.refund and or charge.refund-updated
What changes are you expecting from Stripe's end with these events?
I want to know - was there a refund / was the refund maybe changed.. I dont know I need to know any change to the money I received from the customer
Hi ๐
I'm stepping in for @astral mirage
I'm having a hard time grasping what it is you are asking here. Can you rephrase your question?
I am paying out money based on the money I received from the subscriptions
so I want a failproof way to subtract any many I actually never received
When you say "paying out money", what does this mean? Are these Stripe Connect transfers?
yes
but this is somewhat unrelated
a different business process
so on the one hand, I have the subscriptions
on the other hand, the connect transfers
I am waiting 30 days for the payouts over connect
and for every charge of ONE customer - another one (affiliate partner) gets a % of the charge
but only if there was actually a charge
so now I am thinking of how to best do it
Okay and how are you sharing the revenue with the affiliate partner? Separate Charge & Transfer? Destination Charge?
at the moment I have an event handler listening on "credit_note.created"
I am sending monet via stripe connect to the affiliate partner
they sign up separetly
my question is.. should I just listren to the same credit_note_created" event to substract refunds
That is what I am asking about. How? We have multiple mechanisms
Okay, that you initiate yourself, not as part of a Destination charge?
We have multiple charge types used through connect.
the advantage of connect I think is that the legal part is fully handled
Just to be clear and help us both get on the same page, this is the funds flow I think you are using: https://stripe.com/docs/connect/charges-transfers#collecting-fees
I know about payout and transfer
no
I said, the first part is unrelated
just subscriptions normal subscription
This funds flow has entirely separate charges and transfers. However, if you use the transfer_group parameter when creating your subscriptions it makes it easier to link specific transfers to specific subscriptions.
So how are the refunds being created?
what is a transfer groupp... never heard about it
well refunds.. I would go in the Stripe dashboard and execute a refund
and so far I did it in a way that was also creating the credit notes
because, I used the info to create a credit invoice on my end
If you read the doc I provided it will explain about transfer_group and how you can issue refunds that also pull back to the funds from the Connect account
so you are saying... if I use those transfer group.. and if there is a refund.. then magic.. the connected account will automatically be adjusted?
I'm saying you should read the section about creating refunds and reversing transfers closely
which link? this one: https://stripe.com/docs/connect/charges-transfers#collecting-fees
Yup, that one
ok will do