Skip to content

Commit

Permalink
Tweaked the Save_with_payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
gorrillamcd committed Nov 7, 2012
1 parent 5ba5e8f commit 67652a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def determine_kind


def save_with_payment
puts "save_with_payment started"
if valid? # TODO: Create a customer instead of charge for reuse of card details in future
charge = Stripe::Charge.create(amount: amount, description: "Charge for #{email}", card: stripe_card_token, currency: "usd") # TODO: require name as well for card
save!
Expand Down

0 comments on commit 67652a5

Please sign in to comment.