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 +4 -4
- data/app/models/solidus_nexio/apm_source.rb +2 -2
- data/lib/solidus_nexio/engine.rb +7 -1
- data/lib/solidus_nexio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250e16c116ee306aba649e37277408d77a9dad36c08946ecf21882a618b993bc
|
4
|
+
data.tar.gz: 890fc4756e046fdfe0b9d62e6ef8eac6049345b7d3dbf643ef2aca9d5b30bc2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: {
|
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
|
16
|
+
I18n.t("nexio.apms.#{kind}.name")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/solidus_nexio/engine.rb
CHANGED
@@ -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
|
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
|
|
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.
|
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-
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nexio_activemerchant
|