Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… filled in later.
  • Loading branch information...
commit 0f40f763fd835c8e19672ec08029810a71c0098e 1 parent 0be9202
Chase Southard chaserx authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/models/subscription.rb
3  app/models/subscription.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.