Pass along api_key when refunding fees

This commit is contained in:
Andrew Narkewicz 2015-01-10 08:40:56 -08:00
parent 23aa1c8c7d
commit 001679e809

View File

@ -8,7 +8,7 @@ module Stripe
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