lib/stripe/application_fee.rb in stripe-1.17.2 vs lib/stripe/application_fee.rb in stripe-1.17.3
- old
+ new
@@ -6,10 +6,10 @@
'/v1/application_fees'
end
def refund(params={}, opts={})
api_key, headers = Util.parse_opts(opts)
- response, api_key = Stripe.request(:post, refund_url, api_key, params, headers)
+ response, api_key = Stripe.request(:post, refund_url, api_key || @api_key, params, headers)
refresh_from(response, api_key)
end
private