lib/colt/subscription.rb in colt-0.2.1 vs lib/colt/subscription.rb in colt-0.3.0
- old
+ new
@@ -1,13 +1,13 @@
require 'stripe'
module Colt
class Subscription
def self.create(email, stripe_token, plan_id, description='none')
- Stripe::Customer.create(email: email,
+ Stripe::Customer.create(email: email,
description: description,
- card: stripe_token,
- plan: plan_id)
+ card: stripe_token,
+ plan: plan_id)
end
def self.update(customer_id, plan_id)
customer = Stripe::Customer.retrieve(customer_id)
customer.update_subscription(plan: plan_id)
\ No newline at end of file