lib/stripe/api_operations/create.rb in stripe-1.18.0 vs lib/stripe/api_operations/create.rb in stripe-1.19.0

- old
+ new

@@ -1,12 +1,11 @@ module Stripe module APIOperations module Create module ClassMethods def create(params={}, opts={}) - api_key, headers = Util.parse_opts(opts) - response, api_key = Stripe.request(:post, self.url, api_key, params, headers) - Util.convert_to_stripe_object(response, api_key) + response, opts = request(:post, url, params, opts) + Util.convert_to_stripe_object(response, opts) end end def self.included(base) base.extend(ClassMethods)