enable the transcation

This commit is contained in:
Rimian Perkins 2017-02-15 11:44:34 +11:00
parent 7d72c1f9cd
commit 938983341a
1 changed files with 19 additions and 19 deletions

View File

@ -9,25 +9,25 @@ module Choice
end end
def create def create
# badge = Badge.find_by_name('Consumer Defender') badge = Badge.find_by_name('Consumer Defender')
#
# if badge.nil? if badge.nil?
# head 422 and return head 422 and return
# end end
#
# customer = Stripe::Customer.create( customer = Stripe::Customer.create(
# :email => params[:stripeEmail], :email => params[:stripeEmail],
# :source => params[:stripeToken] :source => params[:stripeToken]
# ) )
#
# charge = Stripe::Charge.create( charge = Stripe::Charge.create(
# :customer => customer.id, :customer => customer.id,
# :amount => 1000, :amount => 1000,
# :description => 'Consumer Defender', :description => 'Consumer Defender',
# :currency => 'aud' :currency => 'aud'
# ) )
#
# BadgeGranter.grant(badge, current_user) BadgeGranter.grant(badge, current_user)
render :json => { status: 'OK' } render :json => { status: 'OK' }
end end