#Runayeon
1 messages · Page 1 of 1 (latest)
Has this been renamed to fee_xxxx?
Hi there, you need to specify the original application fee ID (i.e., fee_xyz) in order to create a application fee refund. Please refer to the API reference for more details (https://stripe.com/docs/api/fee_refunds/create#create_fee_refund)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So it is the fee id with the format fee_xxxx?
Because the id has the format fr_xxxx here
This is the application fee refund object, not application fee object. They are different.
So it should be fine if I pass the fee_xxxx value from the payment_intent's latest charge
?
It should be the charge's application_fee (https://stripe.com/docs/api/charges/object#charge_object-application_fee)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah so, it's paymentIntent.latest_charge.application_fee
One final question. The connect merchant wont be notified of the application fee refund correct?
They will get notified if they register to the relevant events
So there is no way around this
Is this how other companies operate with stripe fees?
Are you asking about Stripe fee or application fee?
Both? I'm taking 10% so I can account for the different application fee amount.
Refunding the difference we take after getting the paymentIntent.latest_charge.balance_transaction.fee value
Like differenceToReturn = application_fee_amount - latest_charge.balance_transaction.fee
OK, and is your question still about the app fee refund notification?
Are your connected accounts of Express, Custom or Standard?
express
yes
I just want to know if my connect merchants will be notified that I took more than stripe fees initially
Only Standard accounts can register webhook endpoints. In another words, the express accounts won't get notified.
But I'd suggest you to test this flow out in test mode.
wdym
I did a test and was able to refund the application fee difference. Is there more I should be doing?
Im refunding the moment my presentPaymentSheetRef isnt an error, so instantly after a successful purchase.
I mean you should login to Express account Dashboard and see if the account can see anything related to app fee refunds