From 72a35cd7384f53531416085897f807d68c6a18af Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 23 Feb 2017 10:31:30 +1100 Subject: [PATCH] upgrade strip gem ~> 2.0 --- app/controllers/discourse_payments/charges_controller.rb | 9 --------- .../javascripts/discourse/components/stripe-card.js.es6 | 2 +- plugin.rb | 5 +++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/controllers/discourse_payments/charges_controller.rb b/app/controllers/discourse_payments/charges_controller.rb index 10dd18e..4bf4d85 100644 --- a/app/controllers/discourse_payments/charges_controller.rb +++ b/app/controllers/discourse_payments/charges_controller.rb @@ -7,12 +7,6 @@ module DiscoursePayments skip_before_filter :verify_authenticity_token, only: [:create] def create - # badge = Badge.find_by_name('Consumer Defender') - # - # if badge.nil? - # head 422 and return - # end - customer = Stripe::Customer.create( :email => current_user.email, :source => params[:stripeToken] @@ -24,9 +18,6 @@ module DiscoursePayments :description => 'Consumer Defender', :currency => 'aud' ) - - # BadgeGranter.grant(badge, current_user) - render :json => charge end end diff --git a/assets/javascripts/discourse/components/stripe-card.js.es6 b/assets/javascripts/discourse/components/stripe-card.js.es6 index 948c590..bf8f80f 100644 --- a/assets/javascripts/discourse/components/stripe-card.js.es6 +++ b/assets/javascripts/discourse/components/stripe-card.js.es6 @@ -28,7 +28,7 @@ export default Ember.Component.extend({ else { var params = { stripeToken: result.token.id, - amount: 1234 + amount: 1235 }; ajax('/charges', { data: params, method: 'post' }).then(data => { diff --git a/plugin.rb b/plugin.rb index 64af3f4..59fef00 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,9 +1,10 @@ # name: discourse-payments # about: Integrating Discourse with Stripe -# version: 1.2.1 +# version: 1.3.0 # url: https://github.com/choiceaustralia/discourse-payments +# authors: Rimian Perkins -gem 'stripe', '1.58.0' +gem 'stripe', '2.0.1' load File.expand_path('../lib/discourse_payments/engine.rb', __FILE__) load File.expand_path('../config/stripe.rb', __FILE__)