#MarcusStripe

1 messages ยท Page 1 of 1 (latest)

formal dawnBOT
gritty saddle
#

charge.refund is for the Charge being refunded in the first place

#

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

fresh swallowBOT
#

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

astral mirage
#

Hello ๐Ÿ‘‹
How can I help?

abstract stream
#

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

astral mirage
#

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?

abstract stream
#

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

high thistle
#

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?

abstract stream
#

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

high thistle
#

When you say "paying out money", what does this mean? Are these Stripe Connect transfers?

abstract stream
#

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

high thistle
#

Okay and how are you sharing the revenue with the affiliate partner? Separate Charge & Transfer? Destination Charge?

abstract stream
#

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

high thistle
abstract stream
#

via a transfer

#

express

high thistle
#

Okay, that you initiate yourself, not as part of a Destination charge?

abstract stream
#

yeah

#

I wouldnt even know that something else is possible

high thistle
#

We have multiple charge types used through connect.

abstract stream
#

the advantage of connect I think is that the legal part is fully handled

high thistle
abstract stream
#

I know about payout and transfer

abstract stream
#

I said, the first part is unrelated

#

just subscriptions normal subscription

high thistle
#

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?

abstract stream
#

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

high thistle
#

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

abstract stream
#

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?

high thistle
#

I'm saying you should read the section about creating refunds and reversing transfers closely

abstract stream
high thistle
#

Yup, that one

abstract stream
#

ok will do