Module: Stripe::Plan

Defined in:
lib/multistripe/plan.rb

Class Method Summary collapse

Class Method Details

.create(options, apiKey) ⇒ Object



4
5
6
7
8
# File 'lib/multistripe/plan.rb', line 4

def self.create(options, apiKey)
  url = "https://#{apiKey}:@api.stripe.com/v1/plans"
  json =  RestClient.post url, options, :content_type=> :json, :accept => :json
  return json
end