catarse_moip 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/catarse_moip/payment_engine.rb +18 -14
- data/lib/catarse_moip/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: 967268691ff2c692f1d848acab880f5de7eeb3d6
|
4
|
+
data.tar.gz: 9f4f592a6c84ebb7876e6fb63a27e5a264b8af1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13ff965abd7d0406e32c44cba03b85cb2dd7286a0c358194eacbd08ac9b98f6d4de06c8e08da93c7fa4b2b622a641eca6b15c6e8b8b10b1ef4c56de224baad4a
|
7
|
+
data.tar.gz: bf15b245833afd9e5c98831a1a28fa65bf8020c61680b7e75a5b91bcbec5c520440505544610948a1c5484611d9b2d1b517d120c492120dd8caf8e2dc8d726ce
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class PaymentEngine < PaymentEngines::Interface
|
1
|
+
module CatarseMoip
|
2
|
+
class PaymentEngine
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
def name
|
5
|
+
'MoIP'
|
6
|
+
end
|
7
|
+
|
8
|
+
def review_path contribution
|
9
|
+
CatarseMoip::Engine.routes.url_helpers.review_moip_path(contribution)
|
10
|
+
end
|
8
11
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
+
def locale
|
13
|
+
'pt'
|
14
|
+
end
|
12
15
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
+
def can_do_refund?
|
17
|
+
false
|
18
|
+
end
|
16
19
|
|
20
|
+
def direct_refund
|
21
|
+
false
|
17
22
|
end
|
23
|
+
|
18
24
|
end
|
19
|
-
rescue Exception => e
|
20
|
-
puts "Error while use payment engine interface: #{e}"
|
21
25
|
end
|
data/lib/catarse_moip/version.rb
CHANGED