Permalink
Browse files

the card token is still not being set. here, clarifying the should be…

… filled in later.
  • Loading branch information...
1 parent 0be9202 commit 0f40f763fd835c8e19672ec08029810a71c0098e @chaserx chaserx committed Jul 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/subscription.rb
@@ -9,7 +9,7 @@ class Subscription < ActiveRecord::Base
def save_with_payment
if valid?
- customer = Stripe::Customer.create(description: "fill in later with userid", plan: member_type_id, card: stripe_card_token)
+ customer = Stripe::Customer.create(description: "fill in later with user name", plan: member_type_id, card: stripe_card_token)
self.stripe_customer_token = customer.id
save!
end
@@ -18,4 +18,5 @@ def save_with_payment
errors.add :base, "There was a problem with your credit card."
false
end
+
end

0 comments on commit 0f40f76

Please sign in to comment.