mechanize_store 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/mechanize_store/payment.rb +2 -3
- data/lib/mechanize_store/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee353b25984cbd879d7554180191bde32bea1c55
|
4
|
+
data.tar.gz: b2bbc3c4cdc145279702c52db5f6cfcce5d125a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3109b065079270e26450e6d5d9a039b148c9572a21a9e59312b15848b8cc65fde0554948a8663dd52bbc555ce5f669d201d9842085c624051dd6904079d8eea3
|
7
|
+
data.tar.gz: 2c7880f9c45d3c8f5bce897763c67512eaccd27f8bf461f7b9a8076b4f303bd96c2e828763040080ac1348038b3d965cadd8012f65a000fd0d6533d54de3e1ba
|
@@ -16,8 +16,7 @@ module MechanizeStore
|
|
16
16
|
|
17
17
|
TYPES = {
|
18
18
|
1 => :credit_card,
|
19
|
-
2 => :
|
20
|
-
3 => :billet
|
19
|
+
2 => :billet
|
21
20
|
}
|
22
21
|
|
23
22
|
validates :payment_type, presence: true
|
@@ -73,7 +72,7 @@ module MechanizeStore
|
|
73
72
|
return "success" if self.payment_status == STATUSES.invert[:accomplished]
|
74
73
|
return "warning" if self.payment_status == STATUSES.invert[:awaiting] or self.payment_status == STATUSES.invert[:in_analisis]
|
75
74
|
return "info" if self.payment_status == STATUSES.invert[:canceled]
|
76
|
-
return "danger" if self.
|
75
|
+
return "danger" if self.payment_status == STATUSES.invert[:unauthorized] or self.payment_status == STATUSES.invert[:need_authorization]
|
77
76
|
end
|
78
77
|
end
|
79
78
|
end
|