mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-06 00:00:29 -05:00
Pass along api_key when refunding fees
This commit is contained in:
parent
23aa1c8c7d
commit
001679e809
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user