solidus_nexio 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 688b1d3e57a069b6ca2e7be0ae40d5d8dcb30955039567da88df8ad8ec6a42fc
4
- data.tar.gz: 42c81d23ec0beeef0bc42d336ff0f0330833bcc0cce06946ed4903146fa5347c
3
+ metadata.gz: 4df0c67eb49492bb5918583218b7132da1dcf48cf770caba201744ecdbb26380
4
+ data.tar.gz: 36b781d1babee42372ec39cd63251cc1377ce9c85fa3433ed1ebe0ec375d1af0
5
5
  SHA512:
6
- metadata.gz: d9d731a7de645f1183af02970be5113969a7a3b2612756d724ba205f13d9f6aea65f80416782b546fbdf7800d803f9fa8c03454dc59f7194bf57223ccc89a65e
7
- data.tar.gz: ce6cf2ac5ce3d9a2f2216f1b000b680de8c4c1f3e7b2b796005628f6932fa982cb74541e828098d799990a338cd4fdea9c37a632b8bfd7f9b64f860247ebdc64
6
+ metadata.gz: 87ef81a898a1c42e52c09bc771b4dde2d6caa8285bf3babddc6843c599626d4daab25ef0547044dc4af1cc8b1219783cd5c139fe5e21214ffb435322bedafa8b
7
+ data.tar.gz: 62307ea1e66aaf0fd59ed5fc1126a2ac9fbccd34bf96db2cec426a0efd0e1209052c54dab10a8bfd43c67a3293cb3a4f85daefe40d49997aad3dbb9a12d785e6
@@ -1,23 +1,21 @@
1
1
  <fieldset data-hook="credit_card">
2
2
  <legend align="center"><%= payment.payment_method.name %></legend>
3
+ <dl>
4
+ <dt><%= I18n.t("spree.identifier") %>:</dt>
5
+ <dd><%= payment.number %></dd>
3
6
 
4
- <div class="row">
5
- <div class="alpha six columns">
6
- <dl>
7
- <dt><%= I18n.t("spree.identifier") %>:</dt>
8
- <dd><%= payment.number %></dd>
7
+ <% if payment.source.is_a?(Spree::CreditCard) %>
9
8
 
10
- <% if payment.source.is_a?(Spree::CreditCard) %>
11
- <dt><%= Spree::CreditCard.human_attribute_name(:cc_type) %>:</dt>
12
- <dd><%= payment.source.cc_type %></dd>
9
+ <dt><%= Spree::Payment.human_attribute_name(:response_code) %>:</dt>
10
+ <dd><input type="text" readonly value="<%= payment.transaction_id %>" class="form-control" /></dd>
11
+ <dt><%= Spree::CreditCard.human_attribute_name(:cc_type) %>:</dt>
12
+ <dd><%= payment.source.cc_type %></dd>
13
13
 
14
- <dt><%= Spree::CreditCard.human_attribute_name(:name) %>:</dt>
15
- <dd><%= payment.source.name %></dd>
14
+ <dt><%= Spree::CreditCard.human_attribute_name(:name) %>:</dt>
15
+ <dd><%= payment.source.name %></dd>
16
16
 
17
- <dt><%= Spree::CreditCard.human_attribute_name(:last_digits) %>:</dt>
18
- <dd><%= payment.source.last_digits %></dd>
19
- <% end %>
20
- </dl>
21
- </div>
22
- </div>
17
+ <dt><%= Spree::CreditCard.human_attribute_name(:last_digits) %>:</dt>
18
+ <dd><%= payment.source.last_digits %></dd>
19
+ <% end %>
20
+ </dl>
23
21
  </fieldset>
@@ -27,7 +27,9 @@ module SolidusNexio
27
27
  end
28
28
 
29
29
  unless Rails.env.production?
30
- ActiveMerchant::Billing::NexioGateway.logger = Rails.logger
30
+ initializer 'solidus_nexio.setup_gateway_logger' do
31
+ ActiveMerchant::Billing::NexioGateway.logger = Rails.logger
32
+ end
31
33
  end
32
34
  end
33
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusNexio
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency 'solidus_api', '>= 2.0'
34
34
  spec.add_dependency 'solidus_core', '>= 2.0'
35
35
  spec.add_dependency 'solidus_support', '~> 0.6'
36
- spec.add_dependency 'nexio_activemerchant', '>= 0.2.4'
36
+ spec.add_dependency 'nexio_activemerchant', '>= 0.2.5'
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_nexio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whitespectre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-09 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.4
75
+ version: 0.2.5
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.4
82
+ version: 0.2.5
83
83
  description:
84
84
  email:
85
85
  - hello@whitespectre.com