mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-07 00:00:35 -05:00
Add the ability to use an api_key for application_fee.refund
This commit is contained in:
parent
100c522a32
commit
4bef41192a
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user