Merge pull request #184 from stripe/shale/more-per-request-headers

More per request headers
This commit is contained in:
shalecraig 2014-12-16 18:24:10 -08:00
commit 9407c932af
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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