mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-07 00:00:35 -05:00
Add ability to specify custom headers for list_object.create
This commit is contained in:
parent
fd104697f3
commit
7c6c8269c6
@ -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