solidus_nexio 0.5.1 → 0.5.2

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
  SHA256:
3
- metadata.gz: 4901a9b0a10b9068426bbbdfd140bd8734ae6afcd072237bdb8461cf93b5a597
4
- data.tar.gz: c0528bea09eb0ff2884716d123728a08b8ca264f06d34e0901f321863f90d7d1
3
+ metadata.gz: 250e16c116ee306aba649e37277408d77a9dad36c08946ecf21882a618b993bc
4
+ data.tar.gz: 890fc4756e046fdfe0b9d62e6ef8eac6049345b7d3dbf643ef2aca9d5b30bc2c
5
5
  SHA512:
6
- metadata.gz: 02ae973beada2a5a34f0f9b8429adac2e80f09eadef39b35a8544b23f737185f267b403990ef89e08046d27442d6d391194c4f79f988c5a453f1ff7c1eeac236
7
- data.tar.gz: a78ecf66c7bf21c4dc4aff8c98ef0a026290e6e0a93eedee191552f49e424003f3e4998768a89a5cd604589346de13fa61d6aaf2332508550f6df578bf3b0a40
6
+ metadata.gz: e448b2a687d13e0a8e921e799af2dfd8325952b3ebfd9433724289067a6bd46ae18de85ca6b9460967380c8059126d8924ca99d3bb172bf4927733e5e2b2b3b5
7
+ data.tar.gz: 511b3e23012df31796d1b0239f50f735a8b49794b056e4bbbed83916602032f5d846ff168a43d117b8abe6f7e903e1e0d47336b873f63269e7782716da8604f8
@@ -6,14 +6,14 @@ module SolidusNexio
6
6
 
7
7
  belongs_to :user, class_name: Spree::UserClassHandle.new, foreign_key: 'user_id', optional: true
8
8
 
9
- enum kind: { braintreePayPal: 0 }
9
+ enum kind: { braintree_pay_pal: 0 }
10
10
 
11
11
  def reusable?
12
12
  gateway_payment_profile_id.present?
13
13
  end
14
14
 
15
15
  def name
16
- I18n.t("nexio.apms.#{kind.underscore}.name")
16
+ I18n.t("nexio.apms.#{kind}.name")
17
17
  end
18
18
  end
19
19
  end
@@ -23,8 +23,14 @@ module SolidusNexio
23
23
  config.after_initialize do |app|
24
24
  app.config.spree.payment_methods << SolidusNexio::PaymentMethod
25
25
  ::Spree::PermittedAttributes.source_attributes.push(:encrypted_number)
26
+
26
27
  app.config.spree.payment_methods << SolidusNexio::AlternativePaymentMethod
27
- ::Spree::PermittedAttributes.checkout_payment_attributes[0][:payments_attributes].push(:nexio_apm_transaction_id)
28
+ ::Spree::PermittedAttributes.checkout_payment_attributes.each do |item|
29
+ next unless item.is_a?(Hash) && item.key?(:payments_attributes)
30
+
31
+ item[:payments_attributes].push(:nexio_apm_transaction_id)
32
+ end
33
+
28
34
  SolidusNexio::Engine.routes.default_url_options = app.routes.default_url_options
29
35
  end
30
36
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusNexio
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whitespectre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-10 00:00:00.000000000 Z
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nexio_activemerchant