solidus_bling 3.4.3 → 3.4.4
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_bling/order.rb +1 -1
- data/lib/solidus_bling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39972f690b188582eb90995659ea1f965d304b6739cfd1ed758f40fc667c0191
|
4
|
+
data.tar.gz: 199818222481a6e2a8dc44c4eeae4e2fb7ee0fd38515d6bc1d9db9713b6519fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adca05171481ba6bd6f08aff36f050ef95ac0f30aa2233f5c660cbae4079212ed27e452a9360714b41cf4067459766885c33b47c1fb242a3ae6c017ac77e64f8
|
7
|
+
data.tar.gz: 390625e14a64fb80333a4de9f9d0d9470bd528f2bd43beba00117732209b610a94b837b56f04df13e9e2fcc1dde088b659b5580d8d4672888372e3ccf5dff896
|
@@ -183,7 +183,7 @@ module SolidusBling
|
|
183
183
|
payment_method = order.payments.valid.last&.payment_method
|
184
184
|
importation_rules = SolidusBling.config.importation_rules
|
185
185
|
if importation_rules
|
186
|
-
order.total >= importation_rules[:amount] && importation_rules[:payment_methods].include?(payment_method
|
186
|
+
order.total >= importation_rules[:amount] && importation_rules[:payment_methods].include?(payment_method&.type)
|
187
187
|
else
|
188
188
|
false
|
189
189
|
end
|