catarse_stripe 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,24 +53,16 @@ module CatarseStripe::Payment
53
53
  def pay
54
54
  backer = current_user.backs.find params[:id]
55
55
  begin
56
-
57
56
  customer = Stripe::Customer.create(
58
- :email => backer.email,
59
- :card => params[:stripeToken]
57
+ email: backer.email,
58
+ card: params[:stripeToken]
60
59
  )
61
60
 
62
61
  response = @@gateway.purchase(
63
- :customer => customer.id,
64
- :amount => backer.price_in_cents,
65
- :currency => 'usd',
66
- :description => t('stripe_description', scope: SCOPE, :project_name => backer.project.name, :value => backer.display_value)
67
-
68
- #{
69
- #ip: request.remote_ip,
70
- #return_url: payment_success_stripe_url(id: backer.id),
71
- #cancel_return_url: payment_cancel_stripe_url(id: backer.id),
72
- #notify_url: payment_notifications_stripe_url(id: backer.id)
73
- #}
62
+ customer: customer.id,
63
+ amount: backer.price_in_cents,
64
+ currency: 'usd',
65
+ description: t('stripe_description', scope: SCOPE, :project_name => backer.project.name, :value => backer.display_value)
74
66
  )
75
67
 
76
68
  backer.update_attribute :payment_method, 'Stripe'
@@ -1,3 +1,3 @@
1
1
  module CatarseStripe
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: