spree_mollie_gateway 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/payment_decorator.rb +9 -2
- data/lib/spree_mollie_gateway/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: 8ca6618e67badd341146be123e4067e78b77c3e4c58690abe454cc3afd168474
|
4
|
+
data.tar.gz: a802ba3b1c7e476e382dd1e337a095ae4d85575c353a2180344613f19fcff728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92aebe0917980d074309baf7d6569cb456045504bd642f03b03b03290fdccb4273ae65b07b5f17cf68b7c94bbd6e954521cced2f444278a179d1e11702cf4c66
|
7
|
+
data.tar.gz: d407ac8b945b46308bce1a22065d96c6965d1951834c7c1fc1a450c2fa71920dac35f7ee22c4b781dac93dd050996a82dbc9a690a9c2fa65c03728ec46cb89d5
|
@@ -1,5 +1,12 @@
|
|
1
1
|
Spree::Payment.class_eval do
|
2
|
-
|
2
|
+
|
3
|
+
def transaction_id
|
4
|
+
if payment_method.is_a? Spree::Gateway::MollieGateway
|
5
|
+
source.transaction_id
|
6
|
+
else
|
7
|
+
response_code
|
8
|
+
end
|
9
|
+
end
|
3
10
|
|
4
11
|
def build_source
|
5
12
|
return unless new_record?
|
@@ -13,4 +20,4 @@ Spree::Payment.class_eval do
|
|
13
20
|
process! if order.completed?
|
14
21
|
end
|
15
22
|
end
|
16
|
-
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_mollie_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vernon de Goede
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|