nimbleshop_authorizedotnet 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,12 @@
1
- <style>
2
- #authorizenetsandboxhelp li {
3
- margin-top: 2px;
4
- margin-bottom: 2px;
5
- }
6
- </style>
1
+ <% if NimbleshopAuthorizedotnet::Authorizedotnet.current.test_mode? %>
2
+
3
+ <style>
4
+ #authorizenetsandboxhelp li {
5
+ margin-top: 2px;
6
+ margin-bottom: 2px;
7
+ }
8
+ </style>
7
9
 
8
- <% if !Rails.env.production? && NimbleshopAuthorizedotnet::Authorizedotnet.first %>
9
10
  <div id='authorizenetsandboxhelp' class='modal hide fade'>
10
11
 
11
12
  <div class='modal-header'>
@@ -31,11 +32,11 @@
31
32
  </div>
32
33
  <div class="modal-footer">
33
34
  <p>
34
- <%= link_to 'More information', '' %> .
35
35
  <small>
36
36
  This message never appears when Authorize.net is running in production mode .
37
37
  </small>
38
38
  </p>
39
39
  </div>
40
40
  </div>
41
+
41
42
  <% end %>
@@ -28,9 +28,8 @@
28
28
  <div class='control-group'>
29
29
  <div class='controls'>
30
30
  <%= f.text_field :number, class: 'input-xlarge focus', placeholder: 'Credit card number', autocomplete: 'off' %>
31
- <% unless (NimbleshopAuthorizedotnet::Authorizedotnet.first.mode == 'production') %>
32
- &nbsp;
33
- <%= link_to 'Valid number', '#authorizenetsandboxhelp', 'data-toggle' => "modal" %>
31
+ <% if NimbleshopAuthorizedotnet::Authorizedotnet.current.test_mode? %>
32
+ &nbsp; <%= link_to 'Valid number', '#authorizenetsandboxhelp', 'data-toggle' => "modal" %>
34
33
  <% end %>
35
34
  </div>
36
35
  </div>
@@ -1,6 +1,8 @@
1
1
  <li>
2
- Your credit card was charged <strong><%= number_to_currency(order.total_amount) %> </strong> .
2
+ Your credit card was charged
3
+ <strong><%= number_to_currency(order.total_amount) %> </strong> .
3
4
  </li>
4
5
  <li>
5
- In the credit card statement name of the company would appear as <strong><%= order.payment_method.business_name %></strong> .
6
+ In the credit card statement name of the company would appear as
7
+ <strong><%= order.payment_method.business_name %></strong> .
6
8
  </li>
@@ -14,7 +14,7 @@ namespace :nimbleshop_authorizedotnet do
14
14
  task :load_record => :environment do
15
15
 
16
16
  if NimbleshopAuthorizedotnet::Authorizedotnet.find_by_permalink('authorizedotnet')
17
- Rails.logger.debug 'Authorize.net record already exists'
17
+ puts 'Authorize.net record already exists'
18
18
  else
19
19
  NimbleshopAuthorizedotnet::Authorizedotnet.create!(
20
20
  {
@@ -25,7 +25,7 @@ namespace :nimbleshop_authorizedotnet do
25
25
  permalink: 'authorizedotnet',
26
26
  description: %Q[<p> Authorize.Net is a payment gateway service provider allowing merchants to accept credit card and electronic checks paymentsn. Authorize.Net claims a user base of over 305,000 merchants, which would make them the Internet's largest payment gateway service provider. </p> <p> It also provides an instant test account which you can use while your application is being processed. </p>]
27
27
  })
28
- Rails.logger.debug 'Authorize.net record was successfuly created'
28
+ puts 'Authorize.net record was successfuly created'
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbleshop_authorizedotnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
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-06 00:00:00.000000000 Z
13
+ date: 2012-12-07 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Provides Authorize.net support to nimbleShop
16
16
  email:
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  segments:
72
72
  - 0
73
- hash: -649015240344389807
73
+ hash: 1077918786793053130
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  segments:
81
81
  - 0
82
- hash: -649015240344389807
82
+ hash: 1077918786793053130
83
83
  requirements: []
84
84
  rubyforge_project:
85
85
  rubygems_version: 1.8.24