mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
Merge pull request #184 from stripe/shale/more-per-request-headers
More per request headers
This commit is contained in:
commit
9407c932af
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user