catarse_paypal_express 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/catarse_paypal_express/payment_engine.rb +17 -21
- data/lib/catarse_paypal_express/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: a31de0b63be7f6faedf857fc0b2491ac77264ff9
|
|
4
|
+
data.tar.gz: 33bbaaf426ada236d335bfe2d17f913e630cfdf5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d3a767dddb66db1550f21ceec2bfd886a430e323a0346ac1afee0555a8824f95a5b97c8d12a4aeef309fa5635ddc4f5a0681b77e68172a68fa1d0d0e43a251f
|
|
7
|
+
data.tar.gz: b59fd7e2afdb3c5d1bbdf291b03b6848ab24cec49048a3c2f961d596ebf4b54e8ab40cc492298891c101d0161708d545cd14130300b9756a4347c800b383d8c8
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
class PaymentEngine < PaymentEngines::Interface
|
|
1
|
+
module CatarsePaypalExpress
|
|
2
|
+
class PaymentEngine
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def review_path contribution
|
|
10
|
-
CatarsePaypalExpress::Engine.routes.url_helpers.review_paypal_express_path(contribution)
|
|
11
|
-
end
|
|
4
|
+
def name
|
|
5
|
+
'PayPal'
|
|
6
|
+
end
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
def review_path contribution
|
|
9
|
+
CatarsePaypalExpress::Engine.routes.url_helpers.review_paypal_express_path(contribution)
|
|
10
|
+
end
|
|
16
11
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
def can_do_refund?
|
|
13
|
+
true
|
|
14
|
+
end
|
|
20
15
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
def direct_refund contribution
|
|
17
|
+
CatarsePaypalExpress::ContributionActions.new(contribution).refund
|
|
18
|
+
end
|
|
24
19
|
|
|
20
|
+
def locale
|
|
21
|
+
'en'
|
|
25
22
|
end
|
|
23
|
+
|
|
26
24
|
end
|
|
27
|
-
rescue Exception => e
|
|
28
|
-
puts "Error while use payment engine interface: #{e}"
|
|
29
25
|
end
|