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 +4 -4
- data/VERSION +1 -1
- data/app/views/paid_up/subscriptions/new.html.haml +29 -26
- data/config/locales/en.yml +1 -2
- data/paid_up.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81f0bc42e4e88b95a0bc976c947a7f5b984b477
|
4
|
+
data.tar.gz: 66bf04df9aaf9bf791e8e84a7fec4ad3f245aade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9586940dcf7404966f9134c64483b602665732a9888154ef8c73fce0ba804b4a597eca15d56809082a95b85e5006c13b6eb3d7aac437793bf00901310ebf7aae
|
7
|
+
data.tar.gz: 59191f42ad864f3103aa98c0ee7ccc91eb7a3966d30104356a790161472eac3d3a4b3004e004db709d4fa0d5017568a9d38cd16da7abf7d9ee0ae8ca6083e634
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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]}')
|
data/config/locales/en.yml
CHANGED
@@ -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.
|
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.
|
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"]
|