Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Ommit using a stripe_token
Browse files Browse the repository at this point in the history
  • Loading branch information
vmayoral committed Nov 26, 2014
1 parent 597fdb4 commit b6efb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/preorder_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def order
client = Stripe::Customer.create(
:email => params[:email]
)
card = client.cards.create(:card => params[:stripe_token])
#card = client.cards.create(:card => params[:stripe_token])
card = client.cards.create(:card => params[])
client.default_card = card.id
order_details
charge = Stripe::Charge.create(
Expand Down

0 comments on commit b6efb40

Please sign in to comment.