Add the ability to use an api_key for application_fee.refund

This commit is contained in:
Shale Craig 2014-12-16 15:43:16 -08:00
parent 100c522a32
commit 4bef41192a

View File

@ -6,8 +6,8 @@ module Stripe
'/v1/application_fees'
end
def refund(params={})
response, api_key = Stripe.request(:post, refund_url, @api_key, params)
def refund(params={}, api_key=nil)
response, api_key = Stripe.request(:post, refund_url, api_key, params)
refresh_from(response, api_key)
end