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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c3104359f48abe0dcb7db00826c17206542222d6d80b62d2d0ef8081eead29f
4
- data.tar.gz: 58910be28e0110c2a44d45bac658c5bec286b012b5de0210430c579463300a52
3
+ metadata.gz: 8ca6618e67badd341146be123e4067e78b77c3e4c58690abe454cc3afd168474
4
+ data.tar.gz: a802ba3b1c7e476e382dd1e337a095ae4d85575c353a2180344613f19fcff728
5
5
  SHA512:
6
- metadata.gz: 77c93445e60c74a96fed738943d6a74e1c3e40af4f8ffe8f4abf341e76d25bf4bc1bee1e114e6e845dd578059fd22bb58522ff73df341512868467bafc62da70
7
- data.tar.gz: 85b2c58031bc8f588d9eb55b85f136990daaadabacc84db745af0ae4e327d86e377ba09aeb9b736700068d0b904800778db7d20fb81bfb54320ecf7781464361
6
+ metadata.gz: 92aebe0917980d074309baf7d6569cb456045504bd642f03b03b03290fdccb4273ae65b07b5f17cf68b7c94bbd6e954521cced2f444278a179d1e11702cf4c66
7
+ data.tar.gz: d407ac8b945b46308bce1a22065d96c6965d1951834c7c1fc1a450c2fa71920dac35f7ee22c4b781dac93dd050996a82dbc9a690a9c2fa65c03728ec46cb89d5
@@ -1,5 +1,12 @@
1
1
  Spree::Payment.class_eval do
2
- delegate :transaction_id, to: :source
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
@@ -1,3 +1,3 @@
1
1
  module SpreeMollieGateway
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  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.6
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-09 00:00:00.000000000 Z
11
+ date: 2018-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core