#dhaari-Connect
1 messages ยท Page 1 of 1 (latest)
It is ok.
Im aware that the refunding of the set value of app fee can be done through api..but not aware of the implementation. Appreciate if you could provide me the samples
currently we do refund by using var options = new RefundCreateOptions
{
Charge = "{CHARGE_ID}",
RefundApplicationFee = true,
ReverseTransfer = true,
};
var service = new RefundService();
var refund = service.Create(options);
i would like to set the amount value for fee field as well
Let me clarify a few things first
Did you collect the fee using the application_fee_amount? or use the transfer_data[amount]?
And you are doing partial refund?
Hmm I see. Partial refund will always pro-rate everything based on the partial amount / original amount
Yeah thanks
instead of making stripe to calculate the application fee to be refunded while issuing partial refund .
Hmm this is the default behavior and I am not aware of a way to change this ๐ค
I need to step out for a while. Later on my colleague would be online to help you. Will noted this internally!
ok. waiting for the response..Im aware that we can use application fee refund object. but i would like to combine that feature with the current. any code sample will be of great help
I would say you just need to not pass refund_application_fee. Then when you calculate whatever amount it is that you want to actually give back to the connected account, you'd have to manually refund that amount, by using https://stripe.com/docs/api/fee_refunds/createl#create_fee_refund-amount (in a separate API call).
getting page not found error
yeah I messed up the URl