mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-11 00:01:46 -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'
|
'/v1/application_fees'
|
||||||
end
|
end
|
||||||
|
|
||||||
def refund(params={})
|
def refund(params={}, api_key=nil, headers={})
|
||||||
response, api_key = Stripe.request(:post, refund_url, @api_key, params)
|
response, api_key = Stripe.request(:post, refund_url, api_key, params, headers)
|
||||||
refresh_from(response, api_key)
|
refresh_from(response, api_key)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ module Stripe
|
|||||||
Util.convert_to_stripe_object(response, api_key)
|
Util.convert_to_stripe_object(response, api_key)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(params={}, api_key=nil)
|
def create(params={}, api_key=nil, headers={})
|
||||||
api_key ||= @api_key
|
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)
|
Util.convert_to_stripe_object(response, api_key)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user