diff --git a/lib/stripe/application_fee.rb b/lib/stripe/application_fee.rb index 93137d03..5b163545 100644 --- a/lib/stripe/application_fee.rb +++ b/lib/stripe/application_fee.rb @@ -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, headers={}) + response, api_key = Stripe.request(:post, refund_url, api_key, params, headers) refresh_from(response, api_key) end diff --git a/lib/stripe/list_object.rb b/lib/stripe/list_object.rb index 3099299a..1285e798 100644 --- a/lib/stripe/list_object.rb +++ b/lib/stripe/list_object.rb @@ -20,9 +20,9 @@ module Stripe Util.convert_to_stripe_object(response, api_key) end - def create(params={}, api_key=nil) + def create(params={}, api_key=nil, headers={}) api_key ||= @api_key - response, api_key = Stripe.request(:post, url, api_key, params) + response, api_key = Stripe.request(:post, url, api_key, params, headers) Util.convert_to_stripe_object(response, api_key) end