paid_up 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46f0a7a50d5ca0880175509a42aaafbda10a906f
4
- data.tar.gz: 7602ed6f1a8fc44170330517bff73006ca05a1fa
3
+ metadata.gz: e81f0bc42e4e88b95a0bc976c947a7f5b984b477
4
+ data.tar.gz: 66bf04df9aaf9bf791e8e84a7fec4ad3f245aade
5
5
  SHA512:
6
- metadata.gz: 01dfa241041865367106bdae3e6825b1daff19019df7de8f8ecf90e32162689f20afa2d8ef563103af85a0bed05130349bb1ccd2cdc5df0a7b0bcdd747a237f9
7
- data.tar.gz: 543579c7bd035fa9b7d3784a085b8ac5fbf5fef48e4bf86af4c89f62c64682812c77ef88ebd02614cc3ecdd1eee24154246139c2f278da8c7815eb4eb9771a7f
6
+ metadata.gz: 9586940dcf7404966f9134c64483b602665732a9888154ef8c73fce0ba804b4a597eca15d56809082a95b85e5006c13b6eb3d7aac437793bf00901310ebf7aae
7
+ data.tar.gz: 59191f42ad864f3103aa98c0ee7ccc91eb7a3966d30104356a790161472eac3d3a4b3004e004db709d4fa0d5017568a9d38cd16da7abf7d9ee0ae8ca6083e634
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.10
1
+ 0.9.11
@@ -11,35 +11,35 @@
11
11
  %script{ src: 'https://js.stripe.com/v2/' }
12
12
  %input{ name: 'plan_id', value: @plan.id, type: 'hidden' }
13
13
  .payment-errors
14
- .form-group
15
- %label.control-label.col-xs-2= :card.l
16
- .col-md-10
17
- .group
18
- - if current_user.cards.count > 0
19
- - current_user.cards.each_with_index do |card, index|
20
- .radio
21
- %label
22
- - if index == 0
23
- %input{ type: :radio, name: 'card', value: card.id, checked: 'checked' }
24
- - else
25
- %input{ type: :radio, name: 'card', value: card.id }
26
- = :card_ending_with.l brand: card.brand, last4: card.last4
27
- .radio
28
- %label
29
- - if current_user.cards.count == 0
30
- %input{ type: :radio, name: 'card', value: 'stripeToken', checked: 'checked' }
31
- - else
32
- %input{ type: :radio, name: 'card', value: 'stripeToken' }
33
- = :enter_new_card.l
14
+
15
+ - if current_user.cards.count == 0
16
+ %input{ type: :hidden, name: 'card', value: 'stripeToken' }
17
+ - else
18
+ .form-group
19
+ %label.control-label.col-xs-2= :card.l
20
+ .col-md-10
21
+ .group
22
+ - if current_user.cards.count > 0
23
+ - current_user.cards.each_with_index do |card, index|
24
+ .radio
25
+ %label
26
+ - if index == 0
27
+ %input{ type: :radio, name: 'card', value: card.id, checked: 'checked' }
28
+ - else
29
+ %input{ type: :radio, name: 'card', value: card.id }
30
+ = :card_ending_with.l brand: card.brand, last4: card.last4
31
+ .radio
32
+ %label
33
+ - if current_user.cards.count == 0
34
+ %input{ type: :radio, name: 'card', value: 'stripeToken', checked: 'checked' }
35
+ - else
36
+ %input{ type: :radio, name: 'card', value: 'stripeToken' }
37
+ = :enter_new_card.l
34
38
  #new-card
35
39
  .form-group
36
40
  %label.control-label.col-xs-2{for: 'number'}= :card_number.l
37
41
  .col-md-10
38
42
  %input.form-control#number{ size: '16', data: { stripe: 'number' } }
39
- .form-group
40
- %label.control-label.col-xs-2{for: 'cvc'}= :cvc.l
41
- .col-xs-4
42
- %input.form-control#cvc{ size: '3', data: { stripe: 'cvc' } }
43
43
  .form-group
44
44
  %label.control-label.col-xs-2{for: 'exp-month'}
45
45
  = :expiration.l
@@ -49,6 +49,10 @@
49
49
  .col-xs-2
50
50
  /
51
51
  %input.form-control#exp-year.col-xs-1{ size: '4', data: { stripe: 'exp-year' } }
52
+ .form-group
53
+ %label.control-label.col-xs-2{for: 'cvc'}= :cvc.l
54
+ .col-xs-4
55
+ %input.form-control#cvc{ size: '3', data: { stripe: 'cvc' } }
52
56
  .form-group
53
57
  %label.control-label.col-xs-2{for: 'coupon_code'}
54
58
  = :coupon_code.l
@@ -58,7 +62,6 @@
58
62
  .col-xs-10.col-xs-offset-2
59
63
  %button#submit-button.form-control.btn.btn-info
60
64
  =:subscribe.l
61
-
62
65
  - add_footer_javascript do
63
66
  :javascript
64
67
  function stripeResponseHandler(status, response) {
@@ -83,7 +86,7 @@
83
86
  // Disable the submit button to prevent repeated clicks
84
87
  $('#submit-button').prop('disabled', true);
85
88
 
86
- if($("input:radio[name='card']:checked").val() == 'stripeToken') {
89
+ if($("input:radio[name='card']:checked").val() == 'stripeToken' || $("input:hidden[name='card']").val() == 'stripeToken') {
87
90
  var $form = $(this);
88
91
 
89
92
  Stripe.setPublishableKey('#{Rails.configuration.stripe[:publishable_key]}')
@@ -40,7 +40,7 @@ en:
40
40
  could_not_update_subscription: 'Could not update subscription'
41
41
  coupon_code: 'Coupon Code'
42
42
  currently_awaiting_confirmation_for_resource: "Currently awaiting confirmation for %{resource}"
43
- cvc: 'CVC'
43
+ cvc: 'CVC/CVV'
44
44
  default_currency: 'usd'
45
45
  default_interval: 'month'
46
46
  didnt_receive_confirmation_instructions: "Didn't receive confirmation instructions?"
@@ -95,6 +95,5 @@ en:
95
95
  when_using_rolify_rows_table_must_exist: 'When using rolify_rows, the table must exist.'
96
96
  x_of_y_remaining: "%{x} of %{y} remaining"
97
97
  x_used_y_allowed: "%{x} used, %{y} allowed"
98
- y_remaining: "%{y} remaining"
99
98
  you_are_now_subscribed_to_the_plan: "You are now subscribed to the %{plan_name} Plan"
100
99
  you_will_be_charged: "You will be charged %{charge_amount}."
data/paid_up.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: paid_up 0.9.10 ruby lib
5
+ # stub: paid_up 0.9.11 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "paid_up"
9
- s.version = "0.9.10"
9
+ s.version = "0.9.11"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren