upgrade strip gem ~> 2.0

This commit is contained in:
Rimian Perkins 2017-02-23 10:31:30 +11:00
parent b490a94b82
commit 72a35cd738
3 changed files with 4 additions and 12 deletions

View File

@ -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

View File

@ -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 => {

View File

@ -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__)