nimbleshop_stripe 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -28,9 +28,8 @@
|
|
28
28
|
<div class='control-group'>
|
29
29
|
<div class='controls'>
|
30
30
|
<input autocomplete="off" class="input-xlarge focus" id="creditcard_number" placeholder="Credit card number" size="30" type="text">
|
31
|
-
<%
|
32
|
-
|
33
|
-
<%= link_to 'Valid number', '#stripe-sandboxhelp', 'data-toggle' => "modal" %>
|
31
|
+
<% if NimbleshopStripe::Stripe.current.test_mode? %>
|
32
|
+
<%= link_to 'Valid number', '#stripe-sandboxhelp', 'data-toggle' => "modal" %>
|
34
33
|
<% end %>
|
35
34
|
</div>
|
36
35
|
</div>
|
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<% if NimbleshopStripe::Stripe.current.test_mode? %>
|
2
|
+
|
3
|
+
<style>
|
4
|
+
#stripe-sandboxhelp li {
|
5
|
+
margin-top: 2px;
|
6
|
+
margin-bottom: 2px;
|
7
|
+
}
|
8
|
+
</style>
|
7
9
|
|
8
|
-
<% if !Rails.env.production? && NimbleshopStripe::Stripe.first %>
|
9
10
|
<div id='stripe-sandboxhelp' class='modal hide fade'>
|
10
11
|
|
11
12
|
<div class='modal-header'>
|
@@ -37,11 +38,11 @@
|
|
37
38
|
</div>
|
38
39
|
<div class="modal-footer">
|
39
40
|
<p>
|
40
|
-
<%= link_to 'More information', '' %> .
|
41
41
|
<small>
|
42
42
|
This message never appears when Stripe is running in live mode .
|
43
43
|
</small>
|
44
44
|
</p>
|
45
45
|
</div>
|
46
46
|
</div>
|
47
|
+
|
47
48
|
<% end %>
|
@@ -13,7 +13,7 @@ namespace :nimbleshop_stripe do
|
|
13
13
|
task :load_record => :environment do
|
14
14
|
|
15
15
|
if NimbleshopStripe::Stripe.find_by_permalink('stripe')
|
16
|
-
|
16
|
+
puts "Stripe record already exists"
|
17
17
|
else
|
18
18
|
NimbleshopStripe::Stripe.create!(
|
19
19
|
{
|
@@ -24,7 +24,7 @@ namespace :nimbleshop_stripe do
|
|
24
24
|
permalink: 'stripe',
|
25
25
|
description: %Q[<p> Stripe is a payment gateway service provider allowing merchants to accept credit card payments. </p>]
|
26
26
|
})
|
27
|
-
|
27
|
+
puts "Stripe record was successfuly created"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nimbleshop_stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-12-
|
13
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: stripe
|
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
segments:
|
80
80
|
- 0
|
81
|
-
hash:
|
81
|
+
hash: 1967509448242785526
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
segments:
|
89
89
|
- 0
|
90
|
-
hash:
|
90
|
+
hash: 1967509448242785526
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
93
|
rubygems_version: 1.8.24
|