jaymedavis/stripe.net — pull request #104 by gareththackeray (2013-11-01 10:35:16+00:00)
Title: Added StripeApplicationFeeService

Stripe have an undocumented feature (see email confirming it below) to allow partial application fee refunds.

I've added the service to deal with this.

I've also removed some of the old code that expected a collection of fees on a charge, as this is neither documented by Stripe nor happening in practice.

I'd like to be able to grab these changes I've made with nuget so please let me know when (or whether) you've published them to nuget. Thanks.

Jonathan Hernandez support@stripe.com via uservoice.com
25 Oct (7 days ago)

to me
Hey there,

It's currently an undocumented feature (we're working on it!), but it is possible to refund an application fee in partial.

If you're familiar with cURL, you can use the following commands (similar to the ones listed on https://stripe.com/docs/api/curl#refund_charge)﻿:

﻿POST https://api.stripe.com﻿/v1/application_fees/{FEE_ID}/refund along with the `amount` you want to refund.

GET https://api.stripe.com/v1/v1/application_fees?charge={CHARGE_ID}﻿ to get the application fee ID.

Please let me know if you have any questions.

Regards,
Jonathan﻿